conceal source code |
| mv ark replied to Arvind M at 08-May-08 06:38 |
AFAIK, there is no fool proof way to conceal the HTML source. The best you can do to obfuscate the HTML, CSS & Javascript is pack it tightly using minifying tools - http://developer.yahoo.com/performance/rules.html#minify
This has the added benefit of improving performance of the web pages as well.
Some folks leave a lot of blank space at the top to create a false but fairly obvious impression that there is no source. GMail obfuscates content by hiding it within a maze of IFrame tags.
You could could protect content by placing it in images & discourage leeching of images by using an Image-Specific HttpHandler. Check this article - http://www.wrox.com/WileyCDA/Section/id-291916.html
This article - http://dorward.me.uk/www/hide/ also talks about protecting webpages
BTW, you can find the source code to build a portal like Dropthings here - http://www.codeplex.com/dropthings/ |
| Biography |
| M.V. 'Anil' Radhakrishna is a seasoned developer and a Microsoft MVP (ASP/ASP.NET). He blogs his little discoveries and Web development tips, tricks and trivia quite regularly. You can find some of his unusual code samples & snippets at his Code Gallery. |
|