简体   繁体   English

如何在网页中禁用Firebug?

[英]How can I disable firebug in my webpage?

How can I disable firebug using Javascript? 如何使用Java脚本禁用Firebug? I want to do this to hide the workings of my webpage from visitors. 我想这样做是为了向访问者隐藏我的网页。 Is there any option to do this? 有什么选择吗?

You can't. 你不能 The best you can do is obfuscate your JavaScript. 最好的办法就是混淆JavaScript。

Actually scratch that. 其实抓了一下。 The best you can do is move all the security-critical code to the server. 最好的办法是将所有安全关键代码移至服务器。 You should be doing that anyway. 无论如何,您都应该这样做。

You can't do it. 你做不到 Check this stackoverflow question on different methods others have adopted as a work around of sorts 在其他人采用的不同方法上检查此stackoverflow问题

As Amadan said, you can't disable particular source-viewers. 正如Amadan所说,您不能禁用特定的源查看器。

But you can use a hack. 但是您可以使用hack。 It works only with viewers, that add them selves to the DOM. 它仅适用于将自己添加到DOM的查看器。 You just have to delete specified node. 您只需要删除指定的节点。 Did a look-around with Firebug Lite for Chrome. 使用Chrome的Firebug Lite进行了环顾。 DON'T use this approach, only for fun :) 不要使用这种方法,只是为了好玩:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM