This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Email Obfuscate Shortcode


Obfuscate your email address or other sensitive information with a shortcode to prevent harvesting of your data.

Version 2.0 includes an improved way of displaying the email without relying on JavaScript document.write();


Basic usage

[email-obfuscate email=””]

Setting custom link text

[email-obfuscate email=”” link_title=”Email Bob!”]

*Setting custom link title attribute”

[email-obfuscate email=”” tag_title=”Email Bob!”]

Using every available setting (this example shows their default values)

[email-obfuscate email=”” linkable=”1″ link_title=”” use_htmlentities=”1″ use_noscript_fallback=”1″ noscript_message=”Please enable JavaScript to see this field.”]

Usage from a template or plugin

Below is a snippet that you can use in any template or plugin to apply the same obfuscation to an email as using the shortcode:

echo eos_obfuscate(array(’email’ => $email, ‘link_title’ => ‘Email Bob!’));
echo $email;

If the plugin is not enabled, the email address will just pass through and output in cleartext.


  • PHP 5.3 or higher
  • mbstring extension


  • السويديّة


  • Better noscript_fallback. Enable people without JavaScript to see the email address using technique to inject empty spans via css.


  • Shortcode example in editor
  • Obfuscated JavaScript code as rendered to page


  1. Upload the email-obfuscate-shortcode folder to /wp-content/plugins/
  2. Activate the plugin (Email Obfuscate Shortcode) through the ‘Plugins’ menu in WordPress
  3. Use the shortcode in any post, page or custom post type.


How does this plugin prevent my email address or other personal information from being harvested?

Email Obfuscate Shortcode converts your email address into JavaScript-based snippet. This makes the address unreadable to the vast majority
of email harvesting techniques.

What browsers is this plugin compatible with?

Internet Explorer 6 and up, any Firefox, Chrome, Safari or Opera version.

How do you obfuscate information other than email addresses?

To obfuscate phone numbers, names and other sensitive information, pass the parameter linkable=”0″. This will print anything you
put in the “email” field as text onto your page, fully protected.

Will people without JavaScript see my email address?

People without JavaScript will see a placeholder message urging them to enable JavaScript. The current placeholder message reads:
“Please enable JavaScript to see this field.”

You can customize this message by passing the noscript_message=”” parameter to the shortcode.

Is the solution bulletproof?

This protection has been proven very effective. However it is theoretically possible to harvest the email address if you run a real browser that resolves javascript (Selenium, Mechanical Turk workers etc.)


أبريل 14, 2017
One word, easy to use. Say goodbye to spammer bot. Nice work, Khromov 😀
شتنبر 3, 2016
I thought that I should rate and review this plugin for the following reasons It works well and is very, very, very simple to use It is free – thank you very much I wish to redress the balance of the 2 people who gave it a 1 star review. I was quite annoyed when I saw what they wrote about a free, easy to use plugin. If you can’t use something this simple then maybe you should reconsider doing anything related to WordPress.
شتنبر 3, 2016
The shortcode works in plain html markup as well. It will also send subject, body etc in the email variable if you use them. Thanx for the plugin
Read all 16 reviews

Contributors & Developers

“Email Obfuscate Shortcode” is open source software. The following people have contributed to this plugin.




  • Improved way of displaying emails, using getElementByID and innerHTML(). This plugin is no longer dependent on document.write and can now be used when data is displayed via AJAX. Compatibility with major browsers should be unaffected.


  • Fix update issue


  • Added support for a tag title attribute via the tag_title=”title” shortcode attribute.


  • Fixed issue with additional space being added after email address. (Thanks to omdaddi)


  • Fixed compatibility issue with PHP 5.2 (5.3 is still recommended)
  • Fixed a bug that made use_htmlentities setting not work.


  • Minor documentation fixes


  • Changed Plugin URI to the plugin page at


  • Initial release