內容簡介
這個外掛在輸出內容之前搜尋並替換所有的電子郵件,使用巧妙的 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]');
外掛標籤
開發者團隊
原文外掛簡介
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]');
