the SoftWareRevue show

Archive for November 30th, 2005

30 Nov

durned spammers

I’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 {
[...]

© 2008 the SoftWareRevue show | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo