Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to prevent Inspect element in website.

i got many solution in jquery but i want to do with controller side without jquery.

What I have tried:

//jquery
javascript - How to hide form code from view code/inspect element browser? - Stack Overflow[^]
Posted
Updated 8-Jan-18 20:22pm

1 solution

You can't control the end user from using browser based debugging tools. The link you provided even says that, and you most certainly can't control a users client side browser from a server side application.

All you can do is intercept any right click commands but that won't prevent anyone from hitting f12 on their browser to bring up the same debugging tools.

I think you need to rethink what it is you are trying to do if your end goal is to control your users PC.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900