There are many programs out there that claim to be able to encrypt your HTML source. Many of these charge you for their software. Please save your money, or if you prefer make a donation to this site instead.
The first step is to create a custom decryptor script to include in the <head> section of your page. To do this enter the address of your site into the box below and then click on the decryptor button. You can also select to add code to block select and print in some browsers and to block filenames from displaying in the status bar. You probably don't want to apply the "disable select" to pages that contain forms as this will interfere with your visitors from being able to copy and paste their content in your form.
Note: The source for these form are themselves encrypted using the encryption scripts that they generate and the context menu has been disabled on this page (but is not necessarily completely disabled by the script).
Any of the pages on your site where you include the above code in the head section of the page can now use source encrypted by the process below. Note that the decryptor is customized for your site and so the decrypted version of your encrypted text will disappear from the page if the page is copied from your site. In fact, if the page is copied from your site the encryptor script will automatically load the home page for the site address that you specified when you created it in place of the copied page.
... // normal title, meta tags, scripts and stylesheets
// Decryptor script goes here.
... // unencrypted page source
// encrypted source script goes here.
... // unencrypted page source
This encryption should be effective at blocking spam spiders from harvesting the email addresses from your page if those addresses are encrypted. It should also be effective at stopping site strippers and other spiders from following any links to other pages where you have encrypted the link code. Where this encryption is not effective (like all other page encryption programs) is that it does not stop anyone from accessing the source code of your page if they want it.
Because the decryptor is encoded for your site, source code thieves cannot just copy the encrypted code from your site to theirs, they would have to first break the encryption (a trivial task if you know how) and then post the readable version on their site. This should make it easier to search for unauthorized copies of your page source and gives the thieves a few extra tasks to perform in order to steal your page. Once they have a readable version of the source there is nothing of course to stop them from doing what they want with your source. The decryptor script becomes entirely superfluous at that point as they can just delete it along with all of the encrypted code.
No one can steal your decryptor script because the script is customized for your particular site. To use this encryption they would need to visit this page and obtain their own copy of the script.
The above script can apply a few additional forms of protection which also interfere with the way that your visitors can interact with your page. The following can also be used in addition to the above encryption to make it more difficult for others to access your page source but at the cost of making your page slower and interfering with your regular visitors enjoyment of your pages:
I recommend that if you are using these methods to try to reduce the chances of your page content being stolen that you also add a copyright notice into all of your images.
This article written by Stephen Chapman, Felgall Pty Ltd.