Re: PHP formmail getting spammed by bots
- From: "Don Khuth" <donkhuth@xxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 04:23:43 -0500
"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.
.
- Follow-Ups:
- Re: PHP formmail getting spammed by bots
- From: KoRnDragon
- Re: PHP formmail getting spammed by bots
- References:
- PHP formmail getting spammed by bots
- From: KoRnDragon
- Re: PHP formmail getting spammed by bots
- From: Don Khuth
- PHP formmail getting spammed by bots
- Prev by Date: Re: Uploading Images - Security
- Next by Date: Re: Is this possible?
- Previous by thread: Re: PHP formmail getting spammed by bots
- Next by thread: Re: PHP formmail getting spammed by bots
- Index(es):
Relevant Pages
|