Re: PHP formmail getting spammed by bots




"Don Khuth" <donkhuth@xxxxxxxxxxxx> wrote in message
news:ZOMVf.616$m35.45300@xxxxxxxxxxxxxxxxxxxxxxxx
"KoRnDragon" <korndragon@xxxxxxxxx> wrote in message
news:1143430063.601434.144680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Re: PHP formmail getting spammed by bots
    ... the form but it seems that's not enough anymore. ... Blocking keywords for the bots won't help. ... When the form is posted, check the posted value with the session value, ... chances are the post was made by a real person. ...
    (alt.php)
  • Re: Ubuntu 8.04 and Firefox 3 Beta 5
    ... None of my Add-ons works anymore, ... |> session with about 30 opened webpages with very important research ... With a proper installation i / one can easily downlaod the stored ... bookmarks from Foxmarks! ...
    (Ubuntu)
  • Re: Chai Vang Lessens Hmong hunting habits!
    ... You would definitely hear from Uncle Yia if he is still a cult like ... Chances are, he's not. ... anymore. ...
    (soc.culture.hmong)
  • Re: PHP formmail getting spammed by bots
    ... the form but it seems that's not enough anymore. ... Blocking keywords for the bots won't help. ... Karl Groves ... Accessibility Discussion List: http://smallerurl.com/?id=6p764du ...
    (alt.php)
  • Session Variables disappear
    ... I leave the code the first time, I have a total number of 18 Session ... When I enter the site again, I have 0 Session Variables. ... I have no ideas left anymore, if anyone could help me out, it would be ...
    (microsoft.public.dotnet.framework.aspnet)