How to make a secure game in javascript?

后端 未结 5 1727
挽巷
挽巷 2020-12-17 18:54

I\'m working on games using javascript some html and css, and I was wondering if there was any way to secure the game so that the user can\'t just call game.php?result=victo

5条回答
  •  不知归路
    2020-12-17 19:31

    There should be no URL for victory. During the game, the client should send the user actions, and if they've won, the server redirects them to the victory page.

    No calculating/rewarding should be done on the victory page, if any.

提交回复
热议问题