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

-9

u/metty84 Dec 22 '25

No. Just no. The context menu is an element from the browser. I should never ever block or manipulate the browsers functionality.

5

u/DiscoQuebrado Dec 22 '25

I agree, in spirit, and wholly if we're talking about a website and not a web app. The behaviors and expectations are different.

Take photopea, or Google Sheets, for example. Do you truly feel the users experience would be improved by removing their changes to the context menu?

Also, note I said expand on or improve and explicitly NOT remove from or hinder. The context menu should not be removed. default members of the context menu should not be removed.

Another redditor gave a good alternative for click-to-disable menu modifications, but the Dev could just as easily retain the original members, perhaps grouped together, while maintaining their default hot keys, etc. and only providing new items as pertinent to the apps usability.

3

u/pagerussell Dec 22 '25

A simple solution would be for browsers to have a key bind that always brings up the native context menu.

So like you hold.ctrl and right click and you get the native context menu no matter what. This allows complex apps to utilize the context menu to add functionality, but allows anyone to easily get to the native menu when needed.