开发者

how to check whether the data is tamper or not while the form is POST in asp.net

开发者 https://www.devze.com 2023-01-15 03:47 出处:网络
I have a form that submits the game score. Is there any way to check whether that game score is not tampered during submission. I am using POST method, for G开发者_如何学CET method we can use HASH, bu

I have a form that submits the game score. Is there any way to check whether that game score is not tampered during submission. I am using POST method, for G开发者_如何学CET method we can use HASH, but i am looking for POST method


What do you mean by tampered with? Are you calculating the score in some client-side code and sending it back to the server? If that's the case, then no there is no way to check. The cardinal rule is to never implicitly trust anything that comes from the client. Validate everything with server-side logic.

0

精彩评论

暂无评论...
验证码 换一张
取 消