What are the methods of protecting JavaScript web applications/games?

后端 未结 3 1213
走了就别回头了
走了就别回头了 2021-02-20 03:26

Back story: I\'m planning to implement a casual game to be deployed in a webapp, but I don\'t want to use Flash, instead just plain Javascript. One benefit of Flash that I would

3条回答
  •  失恋的感觉
    2021-02-20 04:23

    Use AJAX to have your game verify against server code you control. This is also useful if the game is multi-player in someway. Verification prevents someone from changing the code in order to cheat.

    Also Flash is not immune at all from being taken by someone else. People can download the binary and post it wherever they want. And Flash de-compilers do exist and are quite effective.

提交回复
热议问题