Categories

Updated: 03/19/2004

Javascript and Html Source Encoding

An example of a simple JavaScript encoding of an html page. When the page loads you are prompted for a password. Enter the correct password and the page displays properly - enter the wrong password and you see only an &"Invalid password&" message. Viewing the source of the page shows only the encoded content. The encoding is fairly basic but should stop all but the most determined script thieves, spam-bots, or spiders. Tested in Mozilla on Linux, IE on Windows, and Safari on Mac.
©2003-2019 jCay.com