开发者

how to effectively disable console?

开发者 https://www.devze.com 2023-03-02 16:53 出处:网络
By disable I mean: when user enters the website with console already on, or turns on the console on the website, redirect the user to another page (or j开发者_如何转开发ust don\'t allow to keep the co

By disable I mean: when user enters the website with console already on, or turns on the console on the website, redirect the user to another page (or j开发者_如何转开发ust don't allow to keep the console on; though, I doubt that is possible).


Why do you think it's your decision if people may use their browser extensions or not? It's none of your business.

However, you can check if there is window.console. It might be set in some browsers even without a Firebug-like extension being active though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号