內容簡介
PHPEnkoder 是一個從優秀的 Hivelogic Enkoder 移植到 PHP 而來的 WordPress 外掛。它的功能是以一種使用者可看見但機器人不能的方式顯示文字。
編碼系統是直接而不掩飾地從採用 BSD 授權的 Hivelogic Enkoder 的原始碼中借來的。它的運作方式是隨機編碼原始文字並傳送自我評估的 Javascript 程序到瀏覽器,該程序將生成原始文字。這種方式有兩個作用:第一,機器人必須有相當完整的 Javascript 實現(特別是它必須有 eval 函數);第二,解碼過程可以任意地設計為需要大量的計算。這類似於收取計算付款以發送電子郵件的想法,但實際上已經被實現了。
PHPEnkoder 預設會對純文字和 mailto: 連結進行編碼。此外,它還提供了一個手動編碼的短碼,用法如下:[enkode text="對非 JS 瀏覽器顯示的文字"]這段文字將被編碼[/enkode]。
外掛標籤
開發者團隊
原文外掛簡介
PHPEnkoder is a port of the excellent Hivelogic
Enkoder to PHP and, more specifically,
to WordPress. It is used to display text in a way that users can see
and bots can’t.
The encoding system is directly and unabashedly stolen from the
BSD-licensed source of Hivelogic Enkoder, which works by randomly
encoding a piece of text and sending to the browser self-evaluating
Javascript that will generate the original text. This works in two
ways: first, a bot must first have a fairly complete Javascript
implementation (in particular, it must have eval); second, the
decoding process can be made arbitrarily computationally
intensive. This is similar to the idea of charging computational
payments to send e-mail, only this is actually implemented.
By default, PHPEnkoder scrambles e-mails in plaintext and in mailto:
links. It additionally provides a shortcode for manual scrambling,
used like so: [enkode text="shown to non-JS browsers"]this will be
scrambled[/enkode].
