简体   繁体   English

如何禁用JavaScript控制台?

[英]How to disable javascript console?

I have a problem with my webpage. 我的网页有问题。 If my users use the console they can cheat in my JS game, and then save to the server. 如果我的用户使用控制台,他们可以在我的JS游戏中作弊,然后保存到服务器。

Can I send a redirect to the login page if they try to execute anything from console? 如果他们尝试从控制台执行任何操作,是否可以将重定向发送到登录页面?

See this post for more information about the question you're asking - you may be a little off in your understanding of the situation: 有关您所提出的问题的更多信息,请参见此帖子-您对情况的了解可能有些不足:

How does Facebook disable the browser's integrated Developer Tools? Facebook如何禁用浏览器的集成开发人员工具?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM