這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Anti-Spambot

描述

Obfuscation of email via the [email]...[/email] shortcode syntax using built-in WordPress Codex functionality.

Alternative variations:

  • [email]user@example.com?subject=foo+bar&body=baz[/email] creates a mailto: link with subject and body pre-populated
  • [email nolink=1]user@example.com[/email] just displays the email without a link wrapping it
  • [email linktext="click here"]user@example.com[/email] displays the text “click here” with a link to the email address

螢幕截圖

  • Use the [email]...[/email] tag to wrap your email input
  • This will display as an email address wrapped in a mailto: hyperlink (i.e. clickable to open a mail client)
  • The source code used to render this involves randomly-encoded characters, making it more difficult for spambots to harvest

安裝

Install via “Add Plugin”.

常見問題

How does this work?

This plugin converts email addresses within the [email]...[/email] shortcodes using the built-in WordPress Codex antispambot() function. The function converts email address characters to HTML entities. It converts a random selection of characters each time, making it more difficult for spam-bots to “harvest” the email address programmatically.

Is it foolproof?

The only foolproof way to ensure email addresses do not get harvested from a web page is to not include them on the page in any form. However, the method created by the WordPress developers that we employ here should provide reasonable protection against all but the most concerted automatic-harvesting efforts.

評價

2018年12月9日
Users: For details about how to insert a subject line, body content, or how to use your name (or any other text) for the link text, see the thread by Ma3ry in support. Thanks for making this easy-to-use, elegant solution!
2016年9月3日 1 reply
This plugin does exactly what it's supposed to do EASILY! Developer has also added new features which have been really helpful to me. Many, many thanks!
閱讀全部5個評價

貢獻者及開發者

“Anti-Spambot” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Anti-Spambot 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

  • 1.1.5 – Tested with WordPress 5.3
    • 1.1.5 – Tested with WordPress 5.2
    • 1.1.4 – Tested with WordPress 5.1
    • 1.1.3 – Tested with WordPress 5.0
    • 1.1.2 – Tested with WordPress 4.9.5
    • 1.1. – Added support for ?subject= strings, nolink= shortcode attribute (just print) and linktext= shortcode attribute to specify link text
    • 1.0 – upgraded to stable version after eight months in the wild
    • 0.1-alpha – Initial release