Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to stop Firebug from working on a particular site?

Is there some way to make Firebug not work at all on a website?

like image 728
William Calleja Avatar asked May 20 '10 20:05

William Calleja


People also ask

How to disable Firebug?

To remove the extension completely, open the Add-ons page. Either: * Ctrl+Shift+a * orange Firefox button (or Tools menu) > Add-ons In the left column, click Extensions. Then find Firebug and click Remove.

How to activate Firebug?

Installing Firebug It takes a while and asks you to restart the Firefox browser. Once rebooted, click on Firebug under Firefox(top left corner of your Firefox browser) > Web developer. At this stage firebug is not activated. If you click that icon, Firebug will get activated.


2 Answers

If the performance of your website suffers when Firebug is enabled, you may want to display a warning, asking users to switch it off. You can easily detect if Firebug is enabled through JavaScript.

like image 76
Daniel Vassallo Avatar answered Oct 02 '22 07:10

Daniel Vassallo


WARNING: EXTREME EVIL. NEVER EVER USE THIS CODE. Also, it won't deter someone who is resourceful.

setTimeout(checkForFirebug, 100);
function checkForFirebug()
{
    if (window.console && window.console.firebug) {
      while(true);    //Firebug is enabled
    }
    setTimeout(checkForFirebug, 100);
}

EDIT: I figured I would provide an answer to the real question behind the question. The fact is, Javascript is an interpreted language and that interpreter is in the browser. This makes it literally impossible to provide Javascript that is both secure and runnable. The same goes for HTML and CSS. The best you can do is minify the Javascript to make it a little less easy to reuse. If the company in question really wants "secure" Javascript, you just have to tell them it's not truly possible.

like image 43
Eric Mickelsen Avatar answered Oct 02 '22 07:10

Eric Mickelsen