HTML5使Javascript游戏更安全(更安全)吗? [英] Does HTML5 make Javascript gaming safer (more secure)?

查看:111
本文介绍了HTML5使Javascript游戏更安全(更安全)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Javascript是一种令人难以置信的不安全的编程持久性游戏的方式,例如你在RPG中进行战斗计算,然后在获胜时通过链接到PHP页面来奖励XP,将XP添加到数据库中(从那时起)玩家可以制作自己的javascript来赢得胜利,或者只是看看你获胜时发送到的PHP页面,无论如何都去那里)。

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 linking to a PHP page when they win that adds XP to a database (since the player could make their own javascript to always win or just look at the PHP page that you get sent to when you win and just go there anyway).

因此,我想知道HTML5是否使得多人/持久性游戏在这方面更安全,因为我知道它仍然使用Javascript。或者我仍然注定完全依赖服务器端脚本进行任何奖励玩家的计算?

So with that said, I'm wondering if HTML5 makes multiplayer/persistent games any safer in this regard, since I know it still uses Javascript. Or am I still doomed to rely entirely on server-side scripting for doing any calculations that award the player?

推荐答案

任何不是在服务器上本质上是不安全的。毕竟,它只需要一个telnet连接,用户可以将任何他们想要的东西发送到你的服务器。

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.

这篇关于HTML5使Javascript游戏更安全(更安全)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆