[WordPress] 外掛分享: Email JavaScript Cloak

首頁外掛目錄 › Email JavaScript Cloak
WordPress 外掛 Email JavaScript Cloak 的封面圖片
500+
安裝啟用
★★★★★
5/5 分(4 則評價)
2658 天前
最後更新
問題解決
WordPress 3.5.0+ v1.03 上架:2013-08-18

內容簡介

這個外掛讓你可以使用簡碼在內容中自動生成「隱藏的」電子郵件地址。

什麼是隱藏?
舉例來說,假如你的文章/頁面中出現電子郵件地址[email protected],網路爬蟲可以輕鬆地自動擷取或收集這個電子郵件地址,並將它加入垃圾郵件名單。隱藏就是讓這樣的行為更加困難。

此外掛如何進行隱藏?
對於你在內容中包括的任何電子郵件地址,使用自定義的簡碼 [email [email protected]],這個電子郵件地址最初將出現為 "barack -at- whitehouse -dot- gov" 在你的內容中。而在瀏覽器中執行的 JavaScript 將會把這個電子郵件地址轉換為可點擊的常規電子郵件連結。雖然把普通的電子郵件地址轉換為一種奇怪的格式,然後再轉換回來似乎是沒有意義的,但是這種做法的想法是:大多數自動化的網路爬蟲或收集器不運行 JavaScript,因此不能捕捉到非標準的電子郵件地址,大多數訪問您網站的用戶都有JavaScript,看到的是常規電子郵件地址而不是奇怪的格式。

那麼沒有啟用 JavaScript 的用戶呢?
他們將看到奇怪的格式("barack -at- whitehouse -dot- gov")。如果您希望迎合這個小眾訪客群體,您可以使用一個自定義簡碼 [emailnojs]來包含一個腳註來解釋這種奇怪的格式。

授權

此外掛使用GPLv3許可證。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin lets you use a shortcode to automatically generate ‘cloaked’ email addresses in your content.
What is cloaking?
Take an email address like [email protected]. If that was to appear on one of your posts/pages, it could easily be ‘scraped’ or ‘harvested’ automatically to add that email address to a spam list of some sort. Cloaking is all about making that harder to do.
How does this plugin do its cloaking?
For any email address you include in your content, using the custom shortcode of [email [email protected]], that email address will appear as “barack -at- whitehouse -dot- gov” in your content initially. JavaScript running in the browser will then convert that email address to a regular, clickable, email link. Whilst it may seem pointless to convert a regular email address to a strange format only to convert it back again, the idea is that most automated ‘scrapers’, or ‘harvesters’, do not run JavaScript and hence won’t be able to pick up on the non-standard email address. The vast majority of users visiting your site will have JavaScript, and will see regular email addresses (not the strange format).
What about users who have no JavaScript, or have it disabled?
They will see the strange format (“barack -at- whitehouse -dot- gov”). You can include a footnote using a custom short code [emailnojs] which will explain the strange format, if you wish to cater for that tiny minority of visitors.
License
This plugin uses the GPLv3 license.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon