如何保护我的 C# 开源游戏免遭黑客攻击?

发布于 2024-12-25 07:49:26 字数 1436 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最美的太阳 2025-01-01 07:49:26

正如您所说,您需要检查服务器上的所有内容。
无论您是否发布源代码(记住 Reflector!),您都绝不能信任客户端的任何事情(包括其自身的完整性)。

但请注意,(理想情况下)您不需要让作弊成为不可能的事情。你只需要让通过作弊来完成任务比合法完成任务更困难即可。
如果理性的人能够在不作弊的情况下更容易地完成某件事,那么他们就不会通过作弊来完成某件事。

然而,有些人会为了黑客的挑战而作弊,即使这比平常更难。

As you stated, you need to check everything on the server.
Regardless of whether you release source code (remember Reflector!), you must never trust the client for anything (including its own integrity).

Note, however, that (ideally) you don't need to make cheating impossible; you just need to make it harder to accomplish a task by cheating than it is to accomplish that task legitimately.
Rational people will not cheat to accomplish something if they can do it more easily without cheating.

However, some people will cheat for the challenge of the hack, even if it's harder than doing it normally.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文