该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

HumansNotBots – Easy, Accessible Email Cloaker

描述

This email cloaking method:

  • is accessible for people browsing with screen readers (e.g., blind people);
  • degrades gracefully for browsers without JavaScript;
  • works just like a normal, clickable email address for browsers with JavaScript enabled; and
  • requires no shortcodes.

Email addresses in the form email AT address DOT com are converted to a clickable version, email@address.com, if JavaScript is enabled. If JavaScript is not enabled (such as for screen readers), then the email address in the form email AT address DOT com is still readable to humans.

屏幕截图

  • Compose posts with email addresses in the form email AT address DOT com.
  • The post should show a clickable email address.
  • If you view the HTML source, the email scraping bots can only see email AT address DOT com.

安装

Unzip the zip file into the /wp-content/plugins/ directory. Activate the plugin through the ‘Plugins’ menu in WordPress.

常见问题

Won’t email scrapers figure out email addresses in the form `email AT address DOT com`?

In a test comparing the effectiveness of different obfuscation methods in 2008, the obfuscation method “Using ATs and DOTs” received much less spam than “Replacing @ and . with Entities”. Assuming that the 2008 test is an accurate model, this plugin should reduce over 99% of spam without compromising accessibility.

“CSS display: none” should not be used, because screen readers cannot read content styled with display: none either. Reversing email addresses and using ROT-13 encryption are obviously not accessible, either.

Do email addresses that end with “.ca” or “.info” work?

Yes. Any email address with a TLD (top-level domain) of two, three, or four characters would work.

Do email addresses that end with “co.uk” work?

Yes. Email address that end in “co.uk” always worked, but as of version 3.2, you can use the intuitive form: email AT address DOT co.uk.

Something is broken.

Remember that the AT and DOT must be all uppercase (capital letters). You can also try going to Settings and change the replacement method to “Walk the DOM”, which is the new default for version 3.0+.

If you still have problems, you can post your question in the forum and make sure your post has the tag humansnotbots. Another option is to post your question here.

评价

2018 年 4 月 19 日
Why this doesn’t have more reviews, I have no idea. I use this plugin religiously and it’s perfect — easy for clients to use, protects them from spamming. A must-have.
2016 年 9 月 3 日
After all those years the plugin still works and serves me well under a number of installations.
阅读所有2条评价

贡献者及开发者

「HumansNotBots – Easy, Accessible Email Cloaker」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

3.2

  • Updated to allow intuitive form of .co.uk email addresses, i.e., email AT address DOT co.uk.

3.1

  • Fixed bug in node replacement logic for Walk the DOM method

3.0

  • Added support for internationalization.
  • Changed default replacement method to “Walk the DOM”, because “innerHTML” had problems with IE.

2.1

  • DOM replacement method should be faster.
  • Improved JavaScript code for efficiency and readability.

2.0

  • Added option to use another method if the HumansNotBots plugin is incompatible with the WP-Cumulus plugin

1.3

  • Moved script from body onload to wp_footer
  • Improved humansnotbots.js

1.2

  • Fixed error that emptied body class values
  • Supports Hybrid theme
  • Used wp_enqueue_script to add JS instead of printing to wp_head

1.1

  • Fixed error that caused PHP to throw a function.join warning