Eric Jones, Spammer Extraordinaire

If you have a website with a contact form, you probably know of the “beloved” Eric Jones. But it doesn’t have to be that way.

If your site is Word Press, get an Akismet account and API key and install the Akismet Antispam plugin. If your contact form is Contact Form 7, these lines in the form will block this prolific spammer:

<label> Your Email (required)
[email* your-email akismet:author_email] </label>

I believe Akismet will also work with other contact forms, such as Gravity.

If your website is not Word Press, but can handle PHP pages, a custom contact form can easily include a filter to exclude his email id. Here is a sample snippet of code:

function ValidateMail($Email)
{
global $HTTP_HOST;
$result = array();

if (strcmp($Email,”eric.jones.z.mail@gmail.com”) == 0) {
$result[0]=false;
$result[1]=”Known spammer”;
return $result;
}
}

 

Leave a Reply

Your email address will not be published.