I`m using this in my contact form for antibot but still i received tons of mails:
<script type="text/javascript">
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);
var c = a + b
function DrawBotBoot()
{
document.write("Antibot "+ a + " + " + b +" = ");
document.write("<input id='BotBootInput' type='text' maxlength='2' size='2'/>");
}
function ValidBotBoot(){
var d = document.getElementById('BotBootInput').value;
if (d == c) return true;
return false;
}
</script>
Can someone help me and make this to ask for lets say “what is current year” or something like this ?
Thank you
Use CAPTCHA to protect yourself from Bots. Something like reCaptcha will suite your needs. It will much decrease the amount of spam messages to your form.