page encryption source code protection disable right-click contect menu disable screen capture disable text selection

HTML Source Code Protector

Some time ago I was asked if there was a way to hide the source code of a web page. There isn't, because it has to be available to the browser, but it can be encrypted so that it doesn't make any sense to human eyes. Here's an example of source code encryption:
"b6*12`b69=:`b*5*29`\\//759~T=;3w+~[929<,5*%25~G=,.+bo*5*29` %0D%0A%0D%0AbQYJ]~0=19a|:9+;,5.*5/0|~;/0*90*a|E/)~'/0w*~<925 9(9~*65+ppp%25/)w(9~09(9,~+990~%25/),~8=(/,5*9~;929<,5*59+~2 3~2539~*65+~=0%25'69,9p|`%0D%0A%0D%0A
As you can see, encrypted code is meaningless to a human, but the browser understands it and will display the page as it would with normal source code.

Encryption and More

I authorized the development of my HTML Source Code Protector software primarily for people that want to make their source code safe from prying eyes—that's it's main purpose—but I also wanted it to do more to protect web page content. We were able to build in extra protection, but unfortunately, the extra protection is only effective against Internet EXplorer users and browsers based on the IE browser engine.

Fortunately, IE users make up 85 to 90 percent of web surfers, so the extra protection is quite effective against the majority of internet users. The extra protection options include:

  • Disable the right-click menu.
  • Disable text selecting.
  • Disable drag and drop.
  • Disable taking screen shots.
  • Disable document caching.
  • Prohibit offline use.
  • Prohibit printing (not always effective).
  • Disable link URL's in the status bar (show a message of your choice).
  • Perform a referrer check.
  • Keep the page out of another web site's frames.
  • Creates back-up files of pages you protect.
  • Preserve meta tags for search engines (optional, but recommended).


Many of these features require the user to have JavaScript enabled in order to be effective, but about 98 percent of surfers do, so again, the additional protection is quite effective in most cases. Click here to view an encrypted page in a new window.


Source Code Encryption
Encrypting the source code protects your design techniques and tricks, hides the location of images and other files, hides affiliate links, and hides anything you don't want seen. Encryption works no matter which browser a visitor is using.
IE Users and IE Based Browsers
At your option, the HTML Source Code Protector can additionally disable the right-click contect menu (where people often evoke the Save Picture As option to steal images); disables text selection to prevent copying and pasting; disables drag and drop so your web page can't be dropped into another program, such as an editor; disables screen captures so your images can't be stolen that way; disables document caching so your page can't be retrieved from the browser's cache; prohibits offline use of your page; disables the printing function, althought it isn't always effective even against IE users; disables the display of a link URL in the status bar, allowing you to display your own message instead; performs a referrer check; keeps other sites from loading your content in their frames, making it look like their own; can automatically create a backup copy of encrypted pages, this is highly recommended because an encrypted page cannot be edited; and will optionally preserve your meta tags for search engines, this is recommended so your site description isn't gibberish in the search results.
As you can see, I had a lot of features I wanted built into this product, and my developer did a great job. Your source code is always protected by the encryption, and you'll have all that additional protection against the overwhelming majority of internet users as long as Internet Explorer and its clones remain the dominant browser—and that is very likely well into the forseeable future.
The HTML Source Code Protector is regularly $27.00, but to celebrate my new web site design, it's on sale right now for just $21.00.
Back | Products Index


Click image for a larger view
Click the image for a larger view.

Click image for a larger view
Click the image for a larger view.

As you can see from the screen shots, HTML Source Protector is very simple to use. Just add a file, select your options, and encrypt it. Upload your protected pages to your site and your hard work will be safe and secure against the overwhelming majority of users.

Compatible with Windows 98, 2000, ME, NT, XP It's probably compatible with Vista, but I haven't tried it. If nothing else, you should be able to run it in Windows XP mode on a Vista machine.

Suggestions for Users

Listed below are a few suggestions you may find helpful as a registered user.
  • Always create a backup copy of the page you encrypt. Encrypted pages cannot be edited because it will all look like gibberish to you.
  • You may prefer encrypting only a part or parts of a page. The program itself does not have an option for encrypting partial pages, but you can make a separate file with only the content you want encrypted and encrypt that file, then copy and paste the encrypted code into your page.
  • While using the HTML Source Code Protector is easy, it's still recommended that you practice on 'throw-away' pages before using it on your real pages. This will help ensure you are comfortable using the program and help prevent accidentally causing uncorrectable mistakes.
If you forget to make a backup copy of your web site before encrypting it, big mistake! In no event shall or its representatives be liable for any punitive, special, direct, indirect, incidental, or consequential damages, whether arising under contract, warranty, or tort (including negligence or strict liability) or any other theory of liability resulting from the use of this program. As with all software provided on a "as is" basis, the buyer is responsible for installation and use. Purchasing this software indicates your agreement and consent with this disclaimer and all conditions therein.
See my fancy bottom! :)