[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Disable View Source Code

Hi

How to disable the View Source code option when you right click on the browser? Is there any possible method to control this using script?
0
BAD
Asked:
BAD
1 Solution
 
frugalCommented:
I'm assuming that you mean that you don't want users visting your page to be able to view your souce code? If that's the case then there isn't any way to stop it. Inherently for the web to work your html has to be transmitted to the browser, meaning you have to give the browsing computer all of your code.

If you're really concerned with people ripping off your code and using it to make their own stuff then HTML isn't the answer. You might want to look into some other web technologies like Flash, which (among also offering really great multimedai control), creates a file which can't be edited on the user's end (when you save as a flash movie or .swf file).
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now