View Single Post
Old 13-09-2005, 08:55   #6
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: Somebody spamming our website's enquiry forms?

Quote:
Originally Posted by punky
If you don't have server access, then one thing you can do is alter your mailing script to ignore requests from that address. Are you using PHP to mail the form to you? if you are, then you could do something like this:

PHP Code:

if ($_SERVER['remote_addr'] == 'ip.add.here')
{

//echo message about using being banned

}

else
{

//usual mailer script goes here.

} 
Not sure about CGI ones, as I don't use Perl.

HTH.
You'd need to use about 4 different variables to stop it because proxies use two just by themselves.
Also depends on HTTP version.
Richard M is offline   Reply With Quote