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.

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  How To Make ASP.NET 2.0 Web Application Copy Protected - Arvind M  08-May-08 06:08 6:08:23 AM
      Re: - Aravind Kumar  08-May-08 05:45 5:45:13 AM
          Re:. - Arvind M  08-May-08 06:10 6:10:52 AM
      Making your Web Application Copy Protected - Rakesh Vikram  08-May-08 05:51 5:51:14 AM
          Re: - Aravind Kumar  08-May-08 06:17 6:17:56 AM
              Re: - Arvind M  08-May-08 06:28 6:28:18 AM
              Blocking source code in Browser... - Rakesh Vikram  08-May-08 08:09 8:09:03 AM
      Protect your website - Sanjay Verma  08-May-08 06:37 6:37:09 AM
      conceal source code - mv ark  08-May-08 06:38 6:38:34 AM
      Can't hide ur code - chakradhar koturu  08-May-08 10:49 10:49:29 PM
          Re:Can't hide ur code - Arvind M  09-May-08 12:54 12:54:09 AM
              Re: - chakradhar koturu  09-May-08 04:12 4:12:33 AM
                  Re: - Arvind M  09-May-08 04:31 4:31:19 AM
              Re: - chakradhar koturu  09-May-08 04:30 4:30:02 AM
                  Re::::: - Arvind M  09-May-08 04:48 4:48:40 AM
                      Re: - chakradhar koturu  09-May-08 10:15 10:15:10 AM
      Web Application Copy Protected - james lupi  09-May-08 07:58 7:58:18 AM
View Posts