jquery - Is my form safe from spam bots? -
i thought of simple way of securing form spam bots. want check guys if think sufficient. it's contact form, don't need extreme security, e-mail address doesn't spammed.
let's build form this:
<div id="unlock">click 3 times unlock form</div> <form action="url"> <input type="email" /> <textarea></textarea> </form> and simple javascript/jquery check if #unlock has been clicked 3 times. if that's case, add name attribute form elements, so:
$('input[type=email]').attr('name', 'senderemail'); the assumption i'm making bot not able submit form correctly because doesn't know names of form elements. of course i'll check if form values correct on server, , if not, form not submitted. assumption correct? guess possible same instead add action attribute form tag?! way bots shouldn't know recieving url?!
like said, i'm not securing super important, want stop "generic" spam bots.
i've tried before. amazed didn't keep inbox getting spammed (i safe 2 months).
i think if site draws enough attention, kid somewhere going paid couple dollars write quick script defeat whatever security devised that.
i suggest using openid authenticate people before user can use form. know it's not 100% safe well, it's safer such bot-detecting methods , less annoying captcha. , these days has accounts in @ least few of major openid identity providers.
Comments
Post a Comment