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

后端 未结 3 1164
走了就别回头了
走了就别回头了 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:18

    A code obfuscator is about all you can do. No matter what you do, the executable code will/must be available in the browser.

    0 讨论(0)
  • 2021-02-20 04:19

    Why, specifically, do you want it to be in JavaScript? You can use node.js to run JavaScript code server-side for the protected stuff and interact with it from client-side JavaScript.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题