问题
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.
回答1:
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.
回答2:
You can't, unfortunately. HTML is always open so that the browser can render it, so there's no way to encrypt it.
回答3:
There is a website dedicated to this matter. They offer tools to achieve what you want. But, anyway, just google a little bit more, Hope that helps
来源:https://stackoverflow.com/questions/9679323/how-to-encrypt-html-source-code