Is there a way to stop people from viewing source from the browser instead of right clicking? I remembered some people did it before, they have a popup window instead... with credits even. Nice
To remove the menu when right clicking, set the onclick handler to your own function. You could include an alert() box or anything else you may want to do.
You could also put a layer over top of your content which contains a large transparent gif. Then, right clicking will pull up image options instead of view source, etc.
Sincerely,
Ultimately, there's no way to hide the source from the user. There's a very simple way around any method you might try. All these things do is place a small amount of inconvenience on the user.
Of course you cannot hide the source... that is what your web browser uses to render the page. If you hit your webserver port (80 usually) and request a webpage, then your server will serve the page... that's what it's there for. So, even if your browser didn't have multiple ways for you to view the text version of the source, you could easily use telnet or your own CGI app to get it. Until HTTP accepts encrypted or compiled source (not anytime soon if ever), you will always have other people looking at it. It's no big deal really -- do you really think that you could ever do something which someone else couldn't easily figure out, if not have done already?
Sincerely,
I'm not trying to hide the source code away... I built questionaires using simple html .. but the answers could be viewed by checking the source code. Anyway, I have solved the problem, ....by opening a new window, cutting of the nav bar. And the right-clicking feature is disabled as well. Well, thanks for the info. It's helpful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.