开发者

Compile HTML code heavily? [duplicate]

This question already has answers here: 开发者_StackOverflow Closed 12 years ago.

Possible Duplicates:

How to encrypt HTML, CSS and JavaScript to prevent theft

What are some good ways to prevent people from copying my source code?

Is there any good way to compile HTML? I'm working on a page that contains HTML code and some CSS and JavaScript. Is there anyway that I can compile it so that other people cant easily grab it through source?

Any help would be appreciated.


No. There is no way to stop someone from reading the source as the content needs to be served in a format that the browser understands and can parse a DOM tree from.

You can perform minification on the JavaScript that can provide very shallow obsfucation, but that's about it.


HTML is not code, it is markup.

The html needs to be delivered to the browser and if the browser has a view source function it will always show the html.


The only way I know of is to use Zend Optimizer, Zend Encoder and Zend SafeGuard http://www.zend.com/products/guard/ http://www.webhostgear.com/184.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜