Linux 软件免费装
Banner图

Email Address Obfuscation

开发者 neotrendy
更新时间 2026年11月8日 13:06
捐献地址: 去捐款
PHP版本: 5.6 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

email protect anti-spam phone obfuscation

下载

1.0.1 1.2.0 1.1.0 0.9.1 0.9.2 1.0.0 1.3.0

详情介绍:

Email Address Obfuscation is a lightweight plugin that adds the [obfuscate_email] and [obfuscate_phone] shortcodes. They encode the email address or phone number with the built-in WordPress function antispambot(): characters are randomly converted to HTML entities, so simple bots that scan the page source cannot read them. Browsers decode the entities, so visitors see the address or number as usual. The plugin uses no JavaScript, stores no data and does not connect to any external service. Features Email address Plain-text email address [obfuscate_email email="your@example.com"] Clickable email address [obfuscate_email email="your@example.com" link=true] Clickable email address with CSS classes [obfuscate_email email="your@example.com" link=true class="my-class another-class"] Clickable email address with email subject [obfuscate_email email='your@example.com?subject=My custom email subject' link=true] The subject is added to the mailto: link only; the link text is the email address. Other mailto: parameters can be added the same way, separated by &, for example ?subject=Hello&body=Hi there. Link with your own text Without link=true, the shortcode outputs the email address including the subject as text, so you can use it inside your own link, for example in a Custom HTML block: Write to us Phone number Plain-text phone number [obfuscate_phone phone="+421 000 000 000"] Clickable phone number [obfuscate_phone phone="+421 000 000 000" link=true class="my-class"] The number is displayed as written. The tel: link contains only the digits and the leading +, e.g. tel:+421000000000. Link with your own text Write the number without spaces when you use it inside your own link, for example in a Custom HTML block: Call us Shortcode parameters

屏幕截图:

  • Email address displayed on the front end.
  • Obfuscated email address in the page source.

升级注意事项:

1.3.0 Adds the [obfuscate_phone] shortcode and fixes email subject handling. Links no longer have a title attribute and invalid email addresses are no longer displayed. 1.2.0 Added support for email subject. Includes the security fix from 1.1.0 (CVE-2024-11935) – update recommended. 1.1.0 Security fix: resolves a Stored Cross-Site Scripting (XSS) vulnerability in the shortcode class parameter (CVE-2024-11935). Update immediately. 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 Upload to plugin hosting. 0.9.0 Initial release.

常见问题:

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.

更新日志:

1.3.0 1.2.0 1.1.0 1.0.1 1.0.0 0.9.2 0.9.1 0.9.0