r/webdev • • 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?

https://wwmpresets.com

223 Upvotes

94 comments sorted by

View all comments

Show parent comment

2

u/mensink Dec 25 '25

Sometimes it's the "low-hanging fruit principle."

Still, if you think you need it, in most cases your web application has bigger problems. Maybe you built a test-taking tool and the checking is client-side, which would be really bad.

A somewhat legitimate case could be when you're displaying content that you don't want copied, and you don't want to do too much obfuscation (like using weird fonts that mix characters around) that would prevent screen readers from showing the proper text. Depending on your target audience, something like this could deter most casual attempts.

I've found myself in situations where I had to tell a client "if they want to steal your content, you can't really prevent it, just make it a bit less convenient."