Disabling inspect element, right click and F12 in google chrome

被刻印的时光 ゝ 提交于 2019-11-27 01:58:28

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/20659943/disabling-inspect-element-right-click-and-f12-in-google-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!