How to encrypt HTML source code?

Ahmet agha picture Ahmet agha · Mar 13, 2012 · Viewed 54.2k times · Source

Possible Duplicate:
How to encrypt HTML source code output using PHP

I built my static website and I am finished now how to encrypt my source code? Can I hide HTML source code of my page so that nobody can see it?

I have used jquery, iframes, CSS and HTML.

I want protect my website from injection.

Answer

Shree picture Shree · Mar 13, 2012

This article covers a number of techniques including:

  • Source Code Padding
  • No Right Click Scripts
  • "JavaScript Encryption"
  • HTML Protection Software

However the article concludes:

Unfortunately, the short answer to this question is, you can't [hide your source code]. There have been various methods put forth, but all of these are easily circumvented. In the end, the only sure fire way to make sure no one can steal your source code is to never put it on the Internet at all.