hide source code

  • Thread starter Thread starter Jessica
  • Start date Start date
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!
 
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.
 
Now that you've been told it *can't* be done, I've got to ask - *why* would
you want to do that?
 
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!!!!
 
Back
Top