|
The obfuscating HTML encoder is an easy to install PHP script that
obfuscates PHP generated output into a coded form, preventing easy inspection
of the content source. Some browser operations such as right click are also disabled on most browsers. Example
View a sample page and sample page encoded. Download
Download Version 1.9 (html_encoder_1.9.tar.gz) Download Version 1.9 (html_encoder_1.9.zip) Installation
Unpack the downloaded archive and simply include the html_encoder_1.9.php file into your PHP application. Encoded pages should then be output. This script is encoded, and
so if not installed already, be sure to download and install the Loader software for your operating system and PHP version. The encoded PHP script is a binary file, and so
use binary mode if transferring files with FTP or similar programs. If
unpacking with WinZIP, disable the 'TAR smart/cr/lf conversion' feature before unpacking as this can corrupt files. Usage
Once included, the HTML encoder automatically
installs a handler
for HTML output that obfuscates the PHP output and replaces it with the
obfuscated version. No additional coding is required. By default the obfuscated output contains javascript
that blanks the browser status line,
but this behaviour can be configured by setting $status_text
before including the html_encoder.php file. Setting the
variable to
a short string will display the text in the status line, and setting it to
false will prevent the status line from being blanked. Notes
The Encoded pages use Javascript, therefore Javascript must be
enabled on the target browser. If not, the user receives a
message that explains this. If Javascript is used by the pages to be encoded the Javascript may need to be inlined rather than loaded via
external link references.
|