Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web Development
Expertise: Beginner
Mar 11, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Is there a way to disable the View Source menu option in a Web browser?

Is there a way to disable the View Source menu option in the Netscape browser so that when someone tries to look at the document source they can't see it?

No, not that I know of. The HTTP protocol was designed for information sharing, so it cannot be done at the HTTP level. All browsers have this feature built into them; the only way around it is to design your own Web browser and leave out this option. But you'll be hard-pressed to find anyone who would want a browser that didn't allow them to the view the source code on pages that interest them.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date