
Email Address Obfuscation prevents email harvesting by hiding email address appearing in your pages, while…
| Author: | Neotrendy (profile at wordpress.org) |
| WordPress version required: | 3.6 |
| WordPress version tested: | 7.1.4 |
| Plugin version: | 1.3.0 |
| Added to WordPress repository: | 09-03-2022 |
| Last updated: | 28-11-2025 |
| Rating, %: | 100 |
| Rated by: | 4 |
| Plugin URI: | |
| Total downloads: | 16 359 |
| Active installs: | 2 000+ |

Click to start download
|
A lightweight plugin that protects email addresses from email-harvesting bots, by converting email addresses characters to HTML entities. Hide email from Spam Bots using a shortcode [obfuscate_email] and built-in WordPress function antispambot().
Features
- Obfuscate plain email address
- Obfuscate href mailto link in HTML anchor element
- Support for custom CSS class
- Support for email subject
Usage
Obfuscate plain email address
[obfuscate_email email="your@email.com"]
Create clickable email address
[obfuscate_email email="your@email.com" link=true]
Add CSS class to the HTML anchor element
[obfuscate_email email="your@email.com" link=true class="my-class another-class"]
Obfuscate email address with email subject
[obfuscate_email email='your@email.com?subject=My custom email subject']
Shortcode parameter
email required – Email address.
link optional – Set true if you want to create clickable email address.
class optional – Add space separated list of classes.
Screenshots

Using the shortcode in the block editor.

Email address displayed on the front end.

Obfuscated email address in the page source.
FAQ
How does it work?
The shortcodes pass the email address or phone number to the WordPress function antispambot(), which randomly converts characters to HTML entities. Browsers display the text normally, so there are no visible changes for your visitors.
Does it stop all spam bots?
No. HTML-entity encoding stops simple harvesting bots that read the raw page source. Bots that decode HTML entities or render the page like a browser can still read the address or number.
Where can I use the shortcodes?
Anywhere WordPress processes shortcodes, for example in posts and pages using the Shortcode block of the block editor, or in the classic editor.
How can I check that the plugin works?
Open the page source (Ctrl + U in most browsers) and find the email address. Instead of the readable address you should see plain characters mixed with HTML entities such as @.
Please note: the Inspector in browser developer tools decodes HTML entities automatically. Use View page source instead.
ChangeLog
1.3.0
- New:
[obfuscate_phone] shortcode obfuscates phone numbers, optionally as a clickable tel: link.
- Fix: Multiple
mailto: parameters (e.g. ?subject=...&body=...) were double-encoded and the email client did not receive them.
- Fix: The link text showed the email subject; it now shows only the email address.
- Fix: Invalid email addresses (e.g. containing spaces) are no longer repaired or output as an empty
mailto: link; the shortcode outputs nothing.
- Change: Removed the
title attribute from the link (better accessibility).
- Change: Corrected the minimum required WordPress version to 3.6.
- Change: Translations are provided by translate.wordpress.org; the bundled Slovak translation was removed.
- Security: Added protection against direct file access.
1.2.0
- Added support for email subject.
1.1.0
- Security Fix: Resolved a Stored Cross-Site Scripting (XSS) vulnerability in the
class parameter of the shortcode, allowing Contributor+ users to inject malicious scripts. (CVE-2024-11935 | Reported by theviper17y)
- Minor code improvements and optimizations.
1.0.1
- Tested compatibility with WordPress 6.2.
1.0.0
- Tested compatibility with WordPress 6.1.1.
- Added translation folder and POT file.
0.9.2
- Tested compatibility with WordPress 6.0.3.
0.9.1
- Shortcode changed from email_obfuscate to obfuscate_email.
0.9.0