Click to See Complete Forum and Search --> : Q for locked hiding source code post?


GigabyteGeek
04-27-2005, 09:21 AM
I was wondering. I've been to websites where the "View Source" option didn't appear in the right-click menu or the View menu at the top of the browser, but more often, websites where the option WAS there, but it was disabled (you'd click on it and neither would do anything. The source file either wouldn't open at all or it would open and be blank).

So when you say that you can't hide the source code, do you mean you just can't do it using javascript? I can imagine that, but what would these people be using? Other kinds of scripting or built-in security provided by their server, etc?

phpnovice
04-27-2005, 09:56 AM
There are two ways that "seem" to hide the source code. One is to simply employ (in IE, at least) the https protocol -- which requires a secure server. This shows the View Source selections as greyed out. The other is to use a hidden frame for your JavaScript (clicking the View Source option from the browser menu bar views only the FRAMESET or main document -- while clicking View Source from the context menu views only the visible frame or document you clicked on).

However, in either case, the source is still available in the visitor's local Internet cache for viewing.

Kor
04-27-2005, 09:57 AM
http://www.webdeveloper.com/forum/showthread.php?t=26841

GigabyteGeek
04-27-2005, 08:46 PM
Thank you!!! Sorry it took so long for me to reply, I forgot my username lol