I agree, o good captcha will be better, but the idea to redirect can be better, you can save in db the ip, and send then to fbi in a periodic time. Yuri Yarlei. www.yuriyarlei.net (under construction) Programmer PHP, CSS, Java, PostregreSQL; Today PHP, tomorrow Java, after the world. Kyou wa PHP, ashita wa Java, sono ato sekai desu. > Date: Tue, 20 Oct 2009 15:36:04 -0300 > From: tapicer@xxxxxxxxx > To: gwpaul@xxxxxxx > CC: php-general@xxxxxxxxxxxxx > Subject: Re: Spam opinions please > > That will work just for one IP, but they could spam you from another > IP. I suggest you add a good captcha to the form and that way you can > avoid spam forever. > > Regards, > > Jonathan > > On Tue, Oct 20, 2009 at 3:31 PM, Gary <gwpaul@xxxxxxx> wrote: > > I have several sites that are getting hit with form spam. I have the script > > set up to capture the IP address so I know from where they come. I found a > > short script that is supposed to stop these IP addresses from accessing the > > form page, it redirects the spammer to another page (I was going to redirect > > to a page that has lots of pop-ups, scantily clad men and offers of joy > > beyond imagination), but someone suggested I redirect to the Federal Trade > > Commission or perhpas the FBI. > > > > Any thoughts on the script and its effectivness? > > > > <?php > > $deny = array("111.111.111", "222.222.222", "333.333.333"); > > if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { > > header("location: http://www.google.com/"); > > exit(); > > } ?>Gary > > > > > > > > __________ Information from ESET Smart Security, version of virus signature database 4526 (20091020) __________ > > > > The message was checked by ESET Smart Security. > > > > http://www.eset.com > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > _________________________________________________________________ Acesse o Portal MSN do seu celular e se mantenha sempre atualizado. Clique aqui. http://www.windowslive.com.br/celular/home.asp?utm_source=MSN_Hotmail&utm_medium=Tagline&utm_campaign=MobileServices200908