Re: Spam opinions please
| From: | Gary | Date: | Tue, 20 Oct 2009 19:09:32 +0000 |
| Subject: | Re: Spam opinions please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299128@lists.php.net to get a copy of this message | ||
I had once by mistake had an include that included itself, so an endless
loop was created and it crashed my machine, my other thought was to redirect
to a page like that. (of course revengful visions of entire 3rd world
servers crashing and entire annoying industries imploding soon follow...but
I digress).
Gary
""Gary"" <gwpaul@ptd.net> wrote in message
news:DA.85.39240.D220EDA4@pb1.pair.com...
>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
>
>
>
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4527 (20091020) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
__________ Information from ESET Smart Security, version of virus signature database 4527 (20091020)
__________
The message was checked by ESET Smart Security.
http://www.eset.com