<legend id='8EBWi'><style id='8EBWi'><dir id='8EBWi'><q id='8EBWi'></q></dir></style></legend>
  • <i id='8EBWi'><tr id='8EBWi'><dt id='8EBWi'><q id='8EBWi'><span id='8EBWi'><b id='8EBWi'><form id='8EBWi'><ins id='8EBWi'></ins><ul id='8EBWi'></ul><sub id='8EBWi'></sub></form><legend id='8EBWi'></legend><bdo id='8EBWi'><pre id='8EBWi'><center id='8EBWi'></center></pre></bdo></b><th id='8EBWi'></th></span></q></dt></tr></i><div id='8EBWi'><tfoot id='8EBWi'></tfoot><dl id='8EBWi'><fieldset id='8EBWi'></fieldset></dl></div>
  • <small id='8EBWi'></small><noframes id='8EBWi'>

    <tfoot id='8EBWi'></tfoot>

    • <bdo id='8EBWi'></bdo><ul id='8EBWi'></ul>

        如何在前端游戏中安全提交高分以防止后期劫持

        How to securely submit a high score in a front end game to prevent post hijacking(如何在前端游戏中安全提交高分以防止后期劫持)
        <legend id='icAGK'><style id='icAGK'><dir id='icAGK'><q id='icAGK'></q></dir></style></legend>
        • <i id='icAGK'><tr id='icAGK'><dt id='icAGK'><q id='icAGK'><span id='icAGK'><b id='icAGK'><form id='icAGK'><ins id='icAGK'></ins><ul id='icAGK'></ul><sub id='icAGK'></sub></form><legend id='icAGK'></legend><bdo id='icAGK'><pre id='icAGK'><center id='icAGK'></center></pre></bdo></b><th id='icAGK'></th></span></q></dt></tr></i><div id='icAGK'><tfoot id='icAGK'></tfoot><dl id='icAGK'><fieldset id='icAGK'></fieldset></dl></div>

          • <tfoot id='icAGK'></tfoot>
              <tbody id='icAGK'></tbody>

            <small id='icAGK'></small><noframes id='icAGK'>

                  <bdo id='icAGK'></bdo><ul id='icAGK'></ul>
                  本文介绍了如何在前端游戏中安全提交高分以防止后期劫持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  给定一个客户端游戏(我们称之为游戏 X) 和一个存储高分的服务器端数据库,如何在游戏结束后将高分安全地发送到服务器一种只有在实际玩过游戏时才能完成的方法(从而防止后期劫持).

                  Given a Client Side Game (lets call it game X) and a server side database that stores the high scores how can after the end condition of the game securely sumbit a high score to the server in a way that can only be done if the game was actually played (thus to prevent post hijacking).

                  鉴于这里设置的这个问题,是我一直在思考的一些想法

                  ** 在游戏开始时发送一个在给定时间后过期的会话 ID 以发送到服务器进行验证

                  ** Upon the game start send a session ID that expires after a given amount of time to be sent to the server for verification

                  问题在于,这很容易通过请求起始 id 然后伪造分数来利用

                  ** 游戏中的检查点发布到服务器以验证该人是否真的在玩游戏

                  ** Checkpoints within the game that post to the server to verify the person is actually playing the game

                  这可以通过一些巧妙的脚本合成

                  推荐答案

                  上传游戏回放并在服务器上验证回放的分数.当然,这只有在您的游戏支持回放时才有效.

                  Upload a replay of the game and verify the score from that replay on the server. Of course this works only if your game supports replays.

                  至少创建一个游戏中发生的事情的粗略日志并应用一些合理性检查.

                  At minimum create a rough log of what's happening ingame and apply some plausibility checks.

                  您还应该添加一些游戏内一致性检查.否则,我将只使用 ArtMoney 之类的工具,并在游戏过程中更改分数.

                  You should also add some ingame consistency checks. Else I'll just use a tool like ArtMoney and change the score during the game.

                  但最终,如果用户编写一个机器人,那就真的很难了.

                  But in the end if the user writes a bot it gets really hard.

                  这篇关于如何在前端游戏中安全提交高分以防止后期劫持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pause youtube video, youtube api(暂停 youtube 视频,youtube api)
                  Youtube iframe api not triggering onYouTubeIframeAPIReady(Youtube iframe api 未触发 onYouTubeIframeAPIReady)
                  How can I stop a video with Javascript in Youtube?(如何在 Youtube 中停止使用 Javascript 的视频?)
                  How to call Greasemonkey#39;s GM_ functions from code that must run in the target page scope?(如何从必须在目标页面范围内运行的代码中调用 Greasemonkey 的 GM_ 函数?)
                  How do you mute an embedded Youtube player?(如何使嵌入式 Youtube 播放器静音?)
                  How to get number of video views with YouTube API?(如何使用 YouTube API 获取视频观看次数?)
                • <small id='vM9q2'></small><noframes id='vM9q2'>

                  <legend id='vM9q2'><style id='vM9q2'><dir id='vM9q2'><q id='vM9q2'></q></dir></style></legend>
                      <tbody id='vM9q2'></tbody>
                      <tfoot id='vM9q2'></tfoot>

                      • <i id='vM9q2'><tr id='vM9q2'><dt id='vM9q2'><q id='vM9q2'><span id='vM9q2'><b id='vM9q2'><form id='vM9q2'><ins id='vM9q2'></ins><ul id='vM9q2'></ul><sub id='vM9q2'></sub></form><legend id='vM9q2'></legend><bdo id='vM9q2'><pre id='vM9q2'><center id='vM9q2'></center></pre></bdo></b><th id='vM9q2'></th></span></q></dt></tr></i><div id='vM9q2'><tfoot id='vM9q2'></tfoot><dl id='vM9q2'><fieldset id='vM9q2'></fieldset></dl></div>

                            <bdo id='vM9q2'></bdo><ul id='vM9q2'></ul>