[WordPress] 外掛分享: Email Spam Protection

首頁外掛目錄 › Email Spam Protection
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
30+
安裝啟用
尚無評分
1819 天前
最後更新
問題解決
WordPress 3.7+ v1.1.0 上架:2019-10-13

內容簡介

這個外掛在輸出內容之前搜尋並替換所有的電子郵件,使用巧妙的 JavaScript 垃圾郵件保護。訪客不會注意到任何變化,只有垃圾郵件機器人無法再抓取您的電子郵件。對於您的佈景主題,該外掛提供了一些方便的幫助功能來保護電子郵件。

BinEmailSpamProtection::cryptMail('[email protected]') = javascript:DeCryptX('jogpAflti/di')

BinEmailSpamProtection::cryptMailLink('[email protected]', [選用文字]) = <a class="noSpam" href="javascript:DeCryptX('jogpAflti/di')"><span class="noSpam-text">mail@<span class="noSpam-at">nospam-</span>example.com</span></a>

BinEmailSpamProtection::linktext('[email protected]') = <span class="noSpam-text">mail@<span class="noSpam-at">nospam-</span>example.com</span>

為了避免該外掛未啟用時出現問題,請在使用它之前檢查該類別是否存在:

$protected = (class_exists('BinEmailSpamProtection') ? BinEmailSpamProtection::cryptMail('[email protected]') : 'mailto:'[email protected]');

外掛標籤

開發者團隊

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

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

原文外掛簡介

The plugin searches the content before output and replaces all emails with a tricky javascript spam protection. The visitor will not notice any change, only spam bots can not grab your emails anymore. For your themes, the plugin provides some handy helper functions to protect emails.
BinEmailSpamProtection::cryptMail('[email protected]') = javascript:DeCryptX('jogpAflti/di')

BinEmailSpamProtection::cryptMailLink('[email protected]', [optional text]) = mail@nospam-example.com

BinEmailSpamProtection::linktext('[email protected]') = mail@nospam-example.com

To avoid problems when the plugin is not active, check to see if the class exists before using it:
$protected = (class_exists('BinEmailSpamProtection') ? BinEmailSpamProtection::cryptMail('[email protected]') : 'mailto:'[email protected]');

延伸相關外掛

文章
Filter
Apply Filters
Mastodon