Feedback on: irt.org FAQ Knowledge Base Q1595
Worth:
Not worth reading
Comments:
If you open the ne document in a new window, disable the toolbar, then disable the right click button, the user is left with no option to view the source of a web page.
Comments:
If you put an empty layer/div at highest zindex covering the whole page, Won't that effectively hide the source script?
Comments:
On the MAIN animation pages of my web site, I manage to inhibit all functions of the browser which would reveal the source. You need IE5 to get to this area and a bit of patience.
http://www.daymares.com
jzw
Comments:
Some idea to disable the MENU in whole, but cannot disable the Selected MENU individually. Here is an sample code you can use to disable the MENU:
window.open("./whatever.asp","newwin1","height=500,width=500,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=yes")
Worth:
Not worth reading
Comments:
In reply to the question about disabling the View -> Source option: DONT. As soon as you start restricting options for users, that automatically creates the curiousity of "Why?". When someone wants to view your source, they will. There is ALWAYS a way. They can save the website to disk, and open it with a html viewer, or on a mac use the command-U option. With all the websites out there (sorry, but its true) I am 99.9% positive that there is someone out there with a better site than you. No one wants to steal your source. Im not saying you suck or anything. Being a webdesigner myself, I know how much time and effort goes into all this. If there is someone who goes to one of my sites after I have spent hours upon hours designing it, then steals my source, good for them. If nothing else, you can look at it this way: At least indirectly, looking at my source, and making the appropriate changes, they are _learning_ something. That makes them less likely to come back and steal more, because they at least have that basic knowledge.
If you really _MUST_ have your source hidden, there are several good javascripts out there. However, to anyone with basic knowledge, Javascripts for security present no problem.
Im running on now. The point: If you hide your source, people will only be more likely to try harder, and possibly end up hacking your site. Dont hide your poorly developed code. Show it off! peace.
Worth:
Worth reading
Comments:
Well you can do it for mse browsers by including the following code in the body tag:
ONCONTEXTMENU=RETURN FALSE
Worth:
Very worth reading
Comments:
its very nessasary to protect our site coding from our competitors
so i want to know how to disable
view source in menu item.i know to stop right click but want to also disable view source from menu item?
Technical:
Not technical enough
Comments:
Yeah, it is possible. www.odsource.com ... try to "view source" with IE.. its disabled.
Length:
Too short
Comments:
have a look on http://java.sun.com/products/javawebstart/ and they do that!
I don't know how, however...
Worth:
Not worth reading
Comments:
If you add the var 'view-source:' before the url e.g.
view-source:http://www.yahoo.com up pops the source. Gets by all the right click java stuff.
the only known devices are heml encrypters. But you need to pay for it. Anyway why would you want to prevent viewing anyway. Unless your making a ton of money from your site :-)