iScramble - Home PageIntroductioniScramble is a PHP script that allows you to protect sections of your HTML code from prying eyes. It scrambles the text into a form that is not human readable, and generates some JavaScript code to descramble it. The JavaScript generated is self contained. It includes the scrambled text and code to descramble it. iScramble can scramble any HTML code. It is particularly useful for hiding email addresses from email address harvesting robots. If you place your email address in plain text on a page on your site, chances are that it will be found by one of these harvesters, and your email address will be sold to spammers. Use iScramble to prevent this. The downside of this technique is that it relies on JavaScript running on the web browser. A visitor to your site does not have JavaScript enabled, they will see a message asking them to enable it instead of the protected HTML. Web browsers have JavaScript enabled by default, so the majority of people have JavaScript enabled in their web browsers. Using iScrambleThere are 2 ways to use iScramble:
Server Side (PHP) EncryptionUsing iScramble is simply a matter of including the php code, calling the iScramble() function passing in text that you want to scramble, then echo the returned string. For example: <?php // Include the iScramble PHP function require_once("iscramble.inc.php"); echo iScramble("private@somewhere.com"); ?> Online EncryptionYou paste the text you want to encode into the demo web page, it is then converted to some JavaScript, which you copy and paste into your web page. ExampleHow Secure Is It?iScramble is secure enough to deter casual visitors to your site from viewing your HTML source. It is also secure enough to prevent SPAM email address harvesting robots. However, it is not completely secure. It would be possible for an attacker to decrypt your original plain text. It is a deterrent, but seems to work well. I use it on several sites to protect email addresses, which would otherwise have ended up on spam lists. This site is hosted by Z-Host. For low cost PHP web hosting visit Z-Host.com. Web hosting plans start at just $20 PER YEAR.
For more scripts than you can shake a stick at, visit |