Is it illegal to write code that could potentially disable developer tools in a browser? [closed]

StackOverflow https://stackoverflow.com/questions/18921084

I know you cannot disable the tools without changing the registry but is it illegal to block the user from hitting F12 or inhibiting them from accessing developer tools at all?

I ask this because there is a discussion going on about web accessibility and I'm trying to find proof that you should not do this. Please advise and thanks in advance.

有帮助吗?

解决方案

Assuming this is IE, and the user is in a corporate environment where she is on a crippled desktop and does not have the right/permission to install other programs like Firefox, Chrome then my answer is "No, it's not illegal."
The computer belongs to the employer and he decides who does what, assuming the user is expected to fulfill a very specific well-defined job.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top