Google Chrome Extension Reveals Website User Agent Detection - gHacks Tech 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.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. ilev said on September 21, 2010 at 9:36 pm
    Reply

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

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.