ungalnanban
ungalnanban

Reputation: 10337

How to confirm Firebug is installed in the browser?

I'm using PHP, for web designing. before loading the page I want to check firebug in installed are not in browser, Is there any function in php else how to find firebug plugins is installed or not.

Upvotes: 2

Views: 317

Answers (5)

Alex K.
Alex K.

Reputation: 175986

Since firebug does not expose itself via a request header its presence or absence in unknown to the web server.

You would need some client side js in the page that checks for and then sends the result of window.console.firebug to a php script which then associates that result in a session variable.

Upvotes: 0

Zar
Zar

Reputation: 6892

You can't do this. However, it's possible with JavaScript:

if (window.console && window.console.firebug) {
  /* firebug found! */
}

Upvotes: 4

Poelinca Dorin
Poelinca Dorin

Reputation: 9715

Not on a normal http request, however you can check it with javascript on the client, then make an ajax to the server with the response and act acording to it. detect firebug with javascript

Upvotes: 1

Sascha Galley
Sascha Galley

Reputation: 16101

I don't think that there are any possibilities to check with PHP, but with JavaScript: finding out if console is available

Upvotes: 1

Dagang Wei
Dagang Wei

Reputation: 26548

PHP is on server side, I don't think there's method to find the client side plugin info. Unless, you can control the browser, then you can detect and put the info in HTTP request, so that server can know.

Upvotes: 1

Related Questions