Email Encoder Bundle – Protect Email Address – WordPress plugin Free download

Click to Download

Email Encoder Bundle – Protect Email Address


Encode mailto links, email addresses, phone numbers and any text to hide them from (spam)bots.


Protect mailto links and plain email addresses
Protect phone numbers (or any text or html)
Also supports special chars, like é, â, ö, Chinese characters etcetera
Also protect your RSS feeds
Use shortcodes, template functions, action and filter hooks
Use the Encoder Form to manually create encoded scripts

Easy to use

After activating the plugin all mailto links will be protected automatically.
You could use shortcodes or template functions to protect plain email addresses, phone numbers or other text.


Documentation – When activated check the “Help”-tab on the plugin options page

Like this plugin?

Send Your Review.


Adam Hunter for the encode method ‘JavaScript Escape’ which is taken from his plugin Email Spam Protection
Tyler Akins for the encode method ‘JavaScript ASCII Mixer’
Title icon on Admin Options Page was made by Jack Cai


Admin Options Page
Check encoded email/content when logged in as admin
Email Encoder Form on the Site


Go to Plugins in the Admin menu
Click on the button Add new
Search for Email Encode Bundle and click ‘Install Now’ or click on the upload link to upload
Click on Activate plugin


Installation Instructions

Go to Plugins in the Admin menu
Click on the button Add new
Search for Email Encode Bundle and click ‘Install Now’ or click on the upload link to upload
Click on Activate plugin

How can I test if an emailaddrees (or other content) is encoded?

First you can enable the plugin option (in the admin panel) called “Show ‘successfully encoded’ text for all encoded content, only when logged in as admin user.”.
When you are logged in and look on the page there will be a sign on the righ side of the emailaddress confirming it was successfully encoded.

The other way is to check the source code yourself by right-clicking on the page and select Page Source Code (the exact text depends on the browser).
Now your (real) source code will be shown. YOur emailaddress should not be shown in a readable way in the source.

Important: in the element inspector of the browser the emailaddress is always shown, so don’t worry about that. That is because the inspector shows
a real time representation of the page. This means an encoded emailaddress is already decoded and made usable for the visistor of the page.

How do I encode my email address(es)?

In the posts you can use this shortcode:
[eeb_email email=”” display=”My Email”]

But mailto links will be encoded automatically (option is on by default):
My Email

The visitors will see everything as normal, but the source behind it will now be encoded (for spambots), and looks like:
/*< ![CDATA[*/ML="mo@kf/lMt”;MI=”4CB8HC77=D0C5HJ1>H563DB@:AF=D0C5HJ190<6C0A2JA7J;6HDBBJ5JHA=DI<b ?0C5HDEI<B?0C5H4GCE";OT="";for(j=0;j*/protected email

This code is not readable by spambots and protects your email address.

How do I encode phone numbers or other text?

Just use the following shortcode within your posts:

For other parts of your site you can use the template function eeb_content().

Email address in a form field is being encoded in a strange way. What to do?

An email address in a form field will not be encoded correctly.
There are 2 ways to solve this problem:

Turn off the option “Replace plain email addresses to protected mailto links”. Keep in mind that this will be the case for the whole site.
Add the page ID of the form to the option “Do not apply Auto-Protect on posts with ID”. The page content will be skipped by the plugin.

How to use email encodig in Custom Fields?

You will have to use the template function eeb_email() or eeb_content().
For example, if your template contains:
echo get_post_meta($post->ID, ’emailaddress’, true);

Then change it to:
$emailaddress = get_post_meta($post->ID, ’emailaddress’, true);
echo eeb_email($emailaddress, ‘Mail Me’);

How to create mailto links that opens in a new window?

You could add extra params to the mailto link and add target='_blank' for opening them in a new window, like:
[eeb_email email=”” display=”My Mail” extra_attrs=”target=’_blank’”]

In html this will look like:
My Mail

How can I encode content of BBPress, WP e-Commerce or other plugins?

If you use other plugins that needs to be encoded you can add a callback to the action “init_email_encoder_bundle”.
For Example:

add_action('eeb_ready', 'extra_encode_filters');

function extra_encode_filters($filter_callback) {
    // add filters for BBPress
    add_filter('bbp_get_reply_content', $filter_callback);
    add_filter('bbp_get_topic_content', $filter_callback);

Can I use special characters (like Chinese)?

Yes, since version 1.3.0 also specail characters are supported.

How to encode emails in all widgets (and not only text widgets)?

If the option ‘All text widgets’ is activated, only text widgets will be filtered for encoding.
It’s possible to filter all widgets by using the Widget Logic Plugin and activate the ‘widget_content’ filter.

Do you have another question? Please ask me


Leave a Reply

Your email address will not be published.