durned spammers
Wednesday, November 30th, 2005I’ve spent a lot of time of late fighting off spammers that are exploiting contact forms.
The simplest method I’ve found is to find the exploited form and add a line that makes it so that it can only send to one recipient.
if (preg_match(’ /[\r\n,;’”]/ ‘, $_POST[’email’])) {
exit(’Invalid email address’);
}
else {
[…]




