Reply to Re: PHP formmail getting spammed by bots

Your name:

Reply:


Posted by Don Khuth on 09/28/23 11:43

"Don Khuth" <donkhuth@sympatico.ca> wrote in message
news:ZOMVf.616$m35.45300@news20.bellglobal.com...
> "KoRnDragon" <korndragon@gmail.com> wrote in message
> news:1143430063.601434.144680@u72g2000cwu.googlegroups.com...
>> I'm getting spam almost daily now from bots crawling my site. Well it
>> seems they've learned how to work a form as well. I added $_POST for
>> the form but it seems that's not enough anymore. Any suggestions?
>> Blocking keywords for the bots won't help. I need a better alternative.
>>
>> Thanks in advance!
>>
>
> Random turing numbers seems to be working for me so far.


/*correction*/
I haven't had any spam since I implemented that.


>
> <?php
> srand((double)microtime()*1000000);
> $string = md5(rand(0,9999));
> $_SESSION["turing"] = substr($string, 0, 5);
> ?>
>
> When the form is posted, check the posted value with the session value,
> chances are the post was made by a real person.
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация