hide source code

J

Jessica

How can I hide my source code so that people viewing my
website will not be able to select it from the View/Source
menu? I want to make it so that the View/Source option is
grayed out!
 
P

Paul S. Wolf

How can I hide my source code so that people viewing my
website will not be able to select it from the View/Source
menu? I want to make it so that the View/Source option is
grayed out!

You can't.

There is javascript code that can disable the right-click mernu, but
disabling javascript makes the code inopperative. That takes about 5
seconds.

Furthermore, once your page has been downloaded to a viewer's browser, a
copy of the code is already on their hard drive in the cache/temporary
internet files, and can be read outside the browser.

If you don't want people to see your source code, the ONLY way to do it
is by not posting it to the web.
 
J

JL_Amerson

Now that you've been told it *can't* be done, I've got to ask - *why* would
you want to do that?
 
J

James

It is my experience that the more you try to hide
something on the internet the more curious viewers get. I
suggest to keep your site simple and accessable to
everyone.

If hackers can get into FBI and CIA sites then I guess
there is nothing we mortals can do!!!!
 
Top