Does HTML5 make Javascript gaming safer (more secure)?

前端 未结 4 583
北恋
北恋 2021-01-22 06:23

I know that Javascript is an incredibly unsecure way of programming a persistent game, where for instance you are doing battle calculations in an RPG and then award XP through l

相关标签:
4条回答
  • 2021-01-22 06:42

    In short, you can't trust anything sent from the client, so the answer is yes - you gotta do the work on the server side.

    0 讨论(0)
  • 2021-01-22 06:43

    No matter what the game, whether JS or native binary, if the scoring system is vulnerable, people will tamper if the game is good enough. Stick to clever serverside every time.

    0 讨论(0)
  • 2021-01-22 06:50

    Anything that's not on the server is inherently insecure. After all, it only takes a telnet connection and the user can send literally anything they want to your server.

    0 讨论(0)
  • 2021-01-22 06:52

    Unfortunately, HTML5 doesn't change these basic properties in any way. So no, you have to do it all server-side.

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