Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 JSP 页面中实现了基于字段的安全性。
如果该字段对用户是只读的,我将属性readonly="true" ;
但是有些用户是技术人员,他们知道Firefox中的firebug或相关工具,使用这些工具,他们从dom中删除只读属性并更改字段的值。
我该如何控制这个?或任何其他机制?
您不能对用户修改您提供的文档做任何事情。您发送给客户的任何内容都在他们的控制之下,不在您的控制之下。
但是只有一些技术可以避免或检测此类参数篡改: