如何禁用浏览器开发人员工具? [英] How to disable browser developer tools?

查看:124
本文介绍了如何禁用浏览器开发人员工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个Web应用程序,因为它可以访问下面的数据库,我需要能够在Firefox和所有类似的应用程序中禁用Safari,Chrome,Firefox和Internet Explorer以及Firebug中的开发人员工具。有没有办法做到这一点?

I'm currently developing a web application and since it has access to a database underneath, I require the ability to disable the developer tools from Safari, Chrome, Firefox and Internet Explorer and Firebug in Firefox and all similar applications. Is there a way to do this?

注意:数据库提供的AJAX框架要求给予数据库的任何内容都在可以修改的Web参数中它返回的任何内容都在JavaScript中处理。因此,当它返回一个值,例如用户是否可以访问网站的某个部分时,必须使用JavaScript处理,然后开发人员工具可以访问。所以这是必需的。

Note: The AJAX framework provided by the database requires that anything given to the database to be in web parameters that can be modified and that anything it returns be handled in JavaScript. Therefore when it returns a value like whether or not a user has access to a certain part of the website, it has to be handled in JavaScript, which developer tools can then access anyway. So this is required.

更新:对于那些仍然认为我做出错误假设的人,我确实问了供应商。以下是他们的回复:

UPDATE: For those of you still thinking im making bad assumptions, I did ask the vendor. Below is their response:

以下是降低风险的一些建议:

Here are some suggestions for ways of mitigating the risk:


1)使用javascript Obfuscator对代码进行模糊处理,并仅为已售出的应用程序提供
模糊版本;保留非
模糊版本供自己编辑。这是一个在线的
混淆器:
如何混淆(保护)JavaScript ?
http://en.wikipedia.org/wiki/Obfuscated_code
http://javascriptobfuscator.com/default.aspx

2)使用描述性较低的名称;也许'repeatedtasks.js'代替
'security.js',因为'security.js'可能会更加突出任何人
,将这类信息视为重要信息。

2) Use a less descriptive name; maybe 'repeatedtasks.js' instead of 'security.js' as 'security.js' will probably stand out more to anyone looking through this type of information as something important.


推荐答案

不,你不能这样做

开发人员菜单位于客户端,由用户的浏览器提供。

The developer menu is on the client side and is provided by the user's browser.

此外,浏览器开发人员应该没有与您的服务器端数据库代码有关,如果确实如此,您需要进行一些重大的重组。

Also the browser developer should have nothing to do with your server side database code, and if it does, you need some maaaaaajor restructuring.

这篇关于如何禁用浏览器开发人员工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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