Join the forums now, and start posting to receive access to our Scripts Vault!
<?php$a = mt_rand(0,10);$b=mt_rand(0,10);$total=md5($a+$b);echo '<label>How much is '.$a.'+'.$b.'?</label> <input type="text" name="antibot"> <input type="hidden" name="antibot_total" value="'.$total.'">';?>
<?phpif(md5($_POST["antibot"]) != $_POST["antibot_total"]){// wrong code}else{// ok}?>
okey okeystill - respect for it must be difficult, I heard a little about JAWs, but still...character by character...Ok, now the antibot thingI think it's not hard to understand, source page:Code: [Select]<?php$a = mt_rand(0,10);$b=mt_rand(0,10);$total=md5($a+$b);echo '<label>How much is '.$a.'+'.$b.'?</label> <input type="text" name="antibot"> <input type="hidden" name="antibot_total" value="'.$total.'">';?>target page:Code: [Select]<?phpif(md5($_POST["antibot"]) != $_POST["antibot_total"]){// wrong code}else{// ok}?>Enhancement assuming bots don't use javascript might be to fill the values with JS and hide the whole thing, thus creating antibot feature invisible for most visitors. And they probably don't use it as this system is used on a very vivid forum I visit (625k posts) and yet we get like a 1 spam per month at most, which is really nothing as there are sometimes like 10 new threads every hour at the evening.Most of captcha systems have already been breached and can be solved automaticalyShould you have any question feel free to ask.I hope there's no mistake
Code: [Select]echo '<label>How much is '.$a.'+'.$b.'?</label> <input type="text" name="antibot"> <input type="hidden" name="antibot_total" value="'.$total.'">';?>
echo '<label>How much is '.$a.'+'.$b.'?</label> <input type="text" name="antibot"> <input type="hidden" name="antibot_total" value="'.$total.'">';?>
Code: [Select]<?php$a = mt_rand(0,10);$b=mt_rand(0,10);
<?php$a = mt_rand(0,10);$b=mt_rand(0,10);