ghacks Technology News

Google Chrome Extension Reveals Website User Agent Detection

Have you ever been to a website with one browser, and then later with another only to realize that the contents displayed were different? Or have you been to a site without favorite browser only to read the note that your browser was not supported by it?

The websites in question are likely using techniques to detect the user agent, which contains information about the web browser and operating system used by the user.

A basic example is the Google search website. It detects the web browser to enable or disable the new Google Instant Search feature. Opera users for instance are not able to use the feature because Google uses browser sniffing to disable the feature for user’s of that browser.

The Google Chrome extension is a basic extension which can detect if a page uses user agent detection. If it is enabled, it displays an icon in the Chrome address form, if not then nothing is displayed. Take a look at the screenshot below to see how it works.

google user agent detection

google user agent detection

User agent detection is not only used on sites to offer different contents to different browsers. Many advertising scripts are also using those techniques. That’s why you for instance see the icon on ghacks as well, even though it is used by third parties and not by us.

The extension is probably nothing that users want to have installed all the time in the browser. It is however interesting to see which websites use user agent detection.

Evil Meter can be downloaded from the Chrome extensions gallery. This site is also an example of a site that detects the browser in a different way, considering that it displays an active install button if the page is accessed with the Google browser, and an inactive button if another browser is used.

Related Articles:

Extend Firefox’s user agent switcher
Display Email User Agent In Thunderbird
How Is Google Chrome Handling Extension Updates?
How To Install Google Chrome For Multiple User Accounts
Apple and AT&T Will Learn that User Agents are no good for access control

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Tuesday September 21, 2010 -
Tags:, ,


Responses so far:

  1. ilev says:

    Adobe has a browser agent as well to offer the appropriate flash plug-in

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us