Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling inspect element, right click and F12 in google chrome

Is there a way to disable inspect element, right click and F12 in google chrome?

like image 275
User2364902 Avatar asked Dec 18 '13 13:12

User2364902


People also ask

How do I disable F12 inspect element?

In case it helps anyone, Inspect Element can be disabled for an individual element by adding the style pointer-events: none; to it.

How do you inspect element in Chrome if right click disabled?

Use Ctrl + Shift + C (or Cmd + Shift + C on Mac) to open the DevTools in Inspect Element mode, or toggle Inspect Element mode if the DevTools are already open. Save this answer.


1 Answers

This is definitely not possible to do from a web page.

Even if you disable right click and disable the default behaviors for F12, Ctrl+Shift+I, and Ctrl+Shift+J, there is no way to stop a user from opening Dev Tools on a different page and navigating to your page with Dev Tools already open.

Also, you can access Dev Tools by going to Menu > Tools > Developer tools, which cannot be prevented by any website.

like image 118
apsillers Avatar answered Oct 06 '22 03:10

apsillers