Disabling inspect element, right click and F12 in google chrome

User2364902 picture User2364902 · Dec 18, 2013 · Viewed 50.2k times · Source

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

Answer

apsillers picture apsillers · Dec 18, 2013

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.