Click to See Complete Forum and Search --> : Hide the source code thru view page source(browser)
Pratibha
03-31-2003, 10:28 AM
Hi All,
Can anyone help me out in hiding the source code when someone tried to look the view-page source?I don't wanna anyone look into my code(javascript and html).
Greatly appreciated for the help!
Thanks in advance!
Vladdy
03-31-2003, 10:30 AM
Why, is your code that ugly that you are ashamed of it :rolleyes: :rolleyes:
Pratibha
03-31-2003, 10:33 AM
The reason behind to hide is,i am supervised so.The basic reason is ,users are not supposed to know about the server information.
So any help?
jeffmott
03-31-2003, 01:31 PM
So why do you have server information in your pages then?
But the answer is you cannot hide the source code. Anything than runs or is parsed client-side (HTML, JavaScript, images, etc.) naturally cannot be hidden from the client.
jdavia
03-31-2003, 01:48 PM
Originally posted by Pratibha
Hi All,Can anyone help me out in hiding the source code
To make you happy that you took all the means posible, you can do some or all of these: Keep in mind that no matter what you do, a way will always be found to see it.
No right click, (do a search for the code)
Have that page open in a new window with no menu bar (a link would is needed to get out of the page)
Or the best one would be to do a dummy page with the code <!- xxxxxx--> and your real code spaced a way down the bottom of the source page. (I never tried that), Jam your code up close to make it differcult to read.
This way you can have a right click so your visitors are happy.