Obfuscate your email address or other sensitive information with a shortcode to prevent harvesting of your data.
Setting custom link text
[email-obfuscate email=”email@example.com” link_title=”Email Bob!”]
*Setting custom link title attribute”
[email-obfuscate email=”firstname.lastname@example.org” tag_title=”Email Bob!”]
Using every available setting (this example shows their default values)
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!’));
If the plugin is not enabled, the email address will just pass through and output in cleartext.
- PHP 5.3 or higher
- mbstring extension
- Upload the
- Activate the plugin (Email Obfuscate Shortcode) through the ‘Plugins’ menu in WordPress
- 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?
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.
You can customize this message by passing the noscript_message=”” parameter to the shortcode.
- Is the solution bulletproof?
以下人員參與了開源軟體〈Email Obfuscate Shortcode〉的開發相關工作。參與者
- 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 WordPress.org
- Initial release