uHTML::Scramble - Scrambling HTML Output

General Overview

The library uHTML::Scramble provides tags and functions to scramble the HTML output. The scrambled HTML code get descrambled in the browser by a JavaScript function after loading. As robots, scanner, crawler, etc. (usually) do not execute JavaScript within the loaded HTML pages, it is a simple method to conceal sensitive data, e.g. email addresses, from them. This documentation refers to the version 0.95 of the uHTML::uScramble library.

To install the module project local, copy it into the uHTML subdirectory of the script-directory of the website. To install it globally, copy it into the uHTML subdirectory of a perl-library directory.

Terms of Use

It is allowed to use this library under the actual GNU Lesser General Public License. The name of this library and it's author is to be named in all derivations.

Requirements

The uHTML::Scramble library requires only the main uHTML library.

List of uHTML tags provided by the uHTML::Scramble library

Scramble, ScrambleCode

List of attribute variables and functions provided by the uHTML::Scramble library

Scramble, ScrambleCode

uHTML tags provided by the uHTML::Scramble library

Scramble

Overview

The Scramble tag scrambles its content before sending it to the browser. When selecting content for scrambling please take in account, that this content gets hidden from crawlers and can't get found by e.g. google.

Attributes

tag="name"
The attribute tag determines the name of the tag with which will replace Scramble. If missing it defaults to span.

Example

<Scramble tag="div">John@mail.com</Scramble>
up↑
ScrambleCode

Overview

The ScrambleCode tag inserts the actually used scramble code number. Is seldom used beyond debug purposes.

Example

<ScrambleCode>
up↑

Attribute variables and functions provided by the uHTML::Scramble library

$Scramble(text)

Overview

The Scramble function returns scrambles the content of an attribute.

Parameters

text
The parameter text defines the text to get obscured.

Example

<div title="$Scramble(John@mail.com)"> … </div>
up↑
$ScrambleCode()

Overview

The ScrambleCode function returns the actually used scramble code number. Is seldom used beyond debug purposes.

Example

<Scramble title="$ScrambleCode"> … </Scramble>