Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

ASP.NET - scratching discs of code & entrepreneurship

Archive · View All
January 2012 8
April 2011 6
March 2011 4
August 2012 2
June 2011 2
May 2012 1
May 2011 1

John Katsiotis's Blog

Detect if Firebug is enabled and deny access

Mar 9 2011 12:00AM by John Katsiotis   

Firebug is an essential tool for every web developer. It allows to do many things such as script debugging, DOM manipulation etc. What happens though when it get’s to the hand of an experienced attacker? Then it could be used to exploit your site very easily!

How can you prevent that? Well, you can’t actually (or you can if you write secure code) because the source is already downloaded to the browser and anyone can do anything with that. But there is a way to make that process a little bit more trickier (attention: it’s still overridable but I won’t say how ?).

Just put the following code in your page and try to active firebug’s console

$(window).load(function() {setInterval(chkh, 5000);});
function chkh() {
    if (window.console && window.console.firebug) {
            var path = window.location.pathname;
            if(path!='/DenyAccess.html')
                window.location = '/DenyAccess.html';
    }
}

What the above script does is that it checks every five (5) seconds and if Firebug’s console is enabled, redirects the user to a page that perhaps prompts the user to disable Firebug’s console or what ever you think. Checking if a variable is defined every five or ten seconds isn’t a heavy process so the overhead is not big.

Do you think the above code can prevent anything? Then use it wisely!

I ‘m saying again that this code checks only for Firebug’s console. Other tabs like HTML, Dom, Script are active and functional.


Republished from djsolid - scratching discs of code & entrepreneurship [19 clicks].  Read the original version here [1 clicks].

John Katsiotis
988 · 0% · 26
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]