我想禁用检查元素工具。 [英] i want to disable inspect element tool.

查看:77
本文介绍了我想禁用检查元素工具。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个应用程序,其中我使用隐藏输入和只读文本输入将固定变量传递给服务器。但任何人都可以从inspect元素更改这些值。我想确定没有人可以改变这些值。



i禁用ctrl + alt + c,f12,右键单击但是检查元素可以通过任何打开来打开其他页面,然后打开我的页面或在标题栏上按f12。

i developed an application in which i use hidden input and read only text inputs to pass fixed variables to server. but anyone can change these values from inspect element. i want to be sure than no one can change these values.

i disabled ctrl+alt+c, f12, right click but inspect element can be open by open from any other page and then open my page or press f12 on title bar.

推荐答案

您不能在您的代码中执行此操作。



在IE中,如果在域环境中,可以通过组策略(不是您的代码!)来完成,但是其他浏览器没有这样的功能。
You can't do it in your code.

In IE it can be done though Group Policy (NOT YOUR CODE!) if in a domain environment, but other browsers do not have such a facility.


As根据我的理解你主要关心的是在客户端更改存储在变量中的值,所以你可以使用其他一些选项来隐藏客户端的这些数据,我想建议你可以使用捆绑和缩小你的jquery代码,一些最终用户不容易理解。或者也可以对这些值使用加密或其他东西。
As per my understanding your main concern about changing the values stored in variables at client side, So you can use some other options for hiding these data from client, I would like to suggest that you can use bundling and minification for your jquery code, that can not easily understand by some end use guys. or can also use encryption or other things for these values.


这篇关于我想禁用检查元素工具。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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