DEV Community

Discussion on: Disable opening dev console in browser using javascript

Collapse
keogami profile image
keogami

1) Disabling right click is a sin, and whoever does it will reserve their place in hell.

2) why would you need to disable opening dev console?

Collapse
inhuofficial profile image
InHuOfficial

People think doing this coupled with disabling selecting text (the 2nd deadly sin) protects their content...I am not sure who told people that though 😂

Collapse
ats1999 profile image
Rahul kumar Author

Offcource, it can prevent this some extent.

Collapse
ats1999 profile image
Rahul kumar Author

Disabling dev console can prevent users from reading url of some static resources. This method will work for users who don't have much patience or who don't know how can bypass this method.

Collapse
ats1999 profile image
Rahul kumar Author

If we are developing a website for online exam, then disabling right click (context menu) would prevent user to do copy paste.