Email spam

Hi was wondering if anyone could help me with constant spam we are getting from a web site I manage. Basically we have a few forms on a web site which are getting filled in with junk and dodgy porn type email address’s, have tried to stop this by setting up a captcha but still we are getting these emails, they look like some sort off software is filling it in by the random capitals it inserts into the form.

Any ideas how I could stop this?
Or better still any way I could get revenge!

You could put the IP of the filler in the e-mail, and blacklist IP’s that keep sending spam.


$blackListIPs = array('1.1.1.1', '2.2.2.2');
if (in_array($_SERVER['REMOTE_ADDR'], $blackListIPs))
{
die('No spammers allowed here');
}

Or just a simple die() with no text so they see a blank page.

Nice, thanks. I think I will have to make a slight change to die command and be a bit more abusive.

If I could give you a hint I would just show those spammers a blank page. If you show something like “no spammers allowed” here they will probably understand that their IP has been banned and use another IP to spam you.

If you show no message at all they have no clue as to what’s going on.

Even better, put some “We’re currently working on this website, please check back soon” page there, just to annoy the little buggers :smiley:

Check spam spam go away and put filters… Hope this can help you.

Look into flood control. If you have PHP there’s a good PEAR package that should help.