Email Spam Protection

0

The plugin searches the content before output and replaces all emails with a tricky javascript spam protection. The visitor will not notice any change, only spam bots can not grab your

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

The plugin searches the content before output and replaces all emails with a tricky javascript spam protection. The visitor will not notice any change, only spam bots can not grab your emails anymore. For your themes, the plugin provides some handy helper functions to protect emails.

BinEmailSpamProtection::cryptMail('mail@example.com') = javascript:DeCryptX('jogpAflti/di')

BinEmailSpamProtection::cryptMailLink('mail@example.com', [optional text]) = <a class="noSpam" href="javascript:DeCryptX('jogpAflti/di')"><span class="noSpam-text">mail@<span class="noSpam-at">nospam-</span>example.com</span></a>

BinEmailSpamProtection::linktext('mail@example.com') = <span class="noSpam-text">mail@<span class="noSpam-at">nospam-</span>example.com</span>

To avoid problems when the plugin is not active, check to see if the class exists before using it:

$protected = (class_exists('BinEmailSpamProtection') ? BinEmailSpamProtection::cryptMail('mail@example.com') : 'mailto:'mail@example.com');