This is a very simple plugin that attempts to hide email addresses from ‘bots (computer email harvesting programs). Why would you want to do this? Because these nasty little harvesting programs are used by equally nasty little spammers. They scour websites looking for email addresses, which are then added to their spam list.
All the plugin does is replace any email addresses in your posts and pages with an obfuscated version. Two types of obfuscation are available:
- Entity encoding – this encodes the email address as HTML entities, making it invisible to most harvesting software
The choice is yours.
After obsfucation the email address is wrapped in a
mailto:, allowing viewers easy email access (while still stopping the ‘bots).
- Download anti-email-spam.zip
- Change obfuscation, if necessary (see below)
- Upload antiemailspam.php to
- Enable plugin from Plugin administration
You can find full details of installing a plugin on the plugin installation page.
Configuration is extremely simple. You can change the type of email obfuscation by editing the antiemailspam.php file and commenting/uncommenting the appropriate line:
//$anti_callback = "anti_callback_entity"; $anti_callback = "anti_callback_js";
$anti_callback = "anti_callback_entity"; //$anti_callback = "anti_callback_js";
NOTE: email addresses already inside a mailto: are ignored.