[WordPress] 外掛分享: Pixeline’s Email Protector

首頁外掛目錄 › Pixeline's Email Protector
WordPress 外掛 Pixeline's Email Protector 的封面圖片
900+
安裝啟用
★★★★
4.3/5 分(8 則評價)
194 天前
最後更新
問題解決
WordPress 2.7+ v1.4.0 上架:2010-01-22

內容簡介

此外掛提供了一種非侵入式但高效的方式來保護郵件地址免受郵件收割機 / 垃圾郵件機器人的攻擊。這裡提供了一個示範。

文章 / 頁面作者可以按照通常的格式(“[email protected]”)在其文章中撰寫電子郵件地址,而不會使它們暴露在垃圾郵件機器人的攻擊下。此外掛會負責隱藏處理,利用一個優雅的退化技術,專注於可用性,從而保護您的電子郵件地址免受捕獲器的侵害,同時使它們對您的人類訪問者可用。

此外掛會取代在文章、頁面、留言和摘要中發現的任何電子郵件地址,並使用一些 HTML 標記替換它們,欺騙大多數電子郵件捕獲器: <span class="email">john(把括號替換為@)doe.com</span>
如果可用JavaScript,它將顯示一個可點擊的鏈接,並向人類用戶顯示原始電子郵件。最大的可用性,最大的保護。

如果您喜歡這個外掛,請評價此外掛。

使用方式

在文章和頁面中像平常一樣書寫您的電子郵件地址。啟用此外掛後,它會將它們替換為一個人類可讀取的 HTML 字串,解釋如何推斷電子郵件地址,並且如果JavaScript可用(99.9%的情況下),原始電子郵件地址將顯示為可點擊的 mailto: 鏈接,例如:
Hello [email protected]. How are you today?
將變為
John(把這些括號替換為@)doe.com。

此外,您可以在括號內放置可見的鏈接文字,來自定 mailto: 鏈接的外觀,就像這樣:

Hello [email protected](John Doe). How are you today?

這變為
John(把這些括號替換為@)doe.com。

在主題內

如果您需要保護主題檔案(例如 footer.php)中的電子郵件,您可以使用 safe_email() 函數,例如:

echo safe_email('[email protected]'); <h3>Contribute</h3>

Github 儲存庫: https://github.com/pixeline/pixeline-email-protector

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Pixeline's Email Protector」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin provides an unobtrusive yet efficient protection against email harvesters / spambots. Here is a demo.
Post/page authors may write email addresses in their article in the usual format (“[email protected]”) without exposing them to spam email harvesters. The plugin takes care of the obfuscation, implementing a graceful degradation technique focusing on usability so as to protect your email addresses from harvesters while keeping them usable to your human visitors.
The plugin replaces any email address found in posts, pages, comments and excerpts, and replace them by a bit of html markup that should deceive most email harvesters: .
If javascript is available, it will display a clickable link and display the original email to the human user. Maximum usability, maximum protection.
Please rate the plugin if you like it.
Usage
Write your email addresses inside your posts and pages as usual. When the plugin is activated, it will replace them by a human-readable html string that explains how to deduce the email address, and if javascript is available (99.9% of the time), the original email address will be displayed as a clickable mailto: link. For example:
Hello [email protected]. How are you today?
will become
John( replace these parenthesis by @ )doe.com.
Additionally, you can specify what the mailto: link should look like by sticking a parenthesis inside of which you put the visible link text, like this:
Hello [email protected](John Doe). How are you today?

will become
John( replace these parenthesis by @ )doe.com.
inside a theme
If you need to protect emails inside your Theme’s files (like the footer.php for example), you can use the function safe_email() like this:
echo safe_email('[email protected]');

Contribute

Github repo: https://github.com/pixeline/pixeline-email-protector

延伸相關外掛

文章
Filter
Mastodon