PDA

View Full Version : Can Source Be Hidden on Client Side?


stoneygossard
03-23-2007, 06:21 PM
Hi,

Is it possible to use some piece of server side code which will hide the source code on the client side i.e. can I stop a person viewing my site from viewing the source code?

If this is possible can someone guide me in the right direction?

Stoney

domedia
03-23-2007, 11:31 PM
Nope, If the user can't download the source, his/hers browser cannot generate the page.

*However* you can encrypt your whole page in javascript I think. But why you would do that is beyond me :) (only browser with javascript could then access your site, say goodbye to accessibility, gadgets, search engines etc.)

Is there something about your webpage HTML that you think is so extraordinary that you don't want other people to see it? Maybe the answer lies elsewhere ;)

stoneygossard
03-24-2007, 10:17 AM
Is there something about your webpage HTML that you think is so extraordinary that you don't want other people to see it? Maybe the answer lies elsewhere ;)

lol....Nothing special about the source code, I was just always curious about that question.

Stoney

davidj
03-24-2007, 02:33 PM
http://www.antssoft.com/htmlprotector/index.htm

stoneygossard
03-24-2007, 02:45 PM
http://www.antssoft.com/htmlprotector/index.htm

Thanks very much DJ