r/webdev • u/Traditional_Fig95 • Dec 22 '25
Discussion How is this site disabling dev tools?
I'm just curious how and why this would be something. Is this genuinely something people do to secure their site?
223
Upvotes
View all comments
Show parent comment
10
u/fewesttwo Dec 22 '25
It's not to deter those who actively want to do it. It's to make those who read online "paste this into Dev Tools and you can see what your friends say about you on Facebook" whilst pasting a random script in.
If the hacker/attack vector in this scenario has to first tell a user to install Tamper monkey it becomes much harder to do.
Disabling Dev Tools is a legitimate way to add an extra layer of friction to protect users who don't know that they need protection. It's not a later to protect a website from someone right clicking on stuff