JavaScript  -  Examples of Web Browser User Agent Strings

CURRENT USER AGENT STRING

The current userAgent string is

 

WINDOWS NT 6.1  -  Windows 7 / Windows Server 2008 R2

AVANT 2012 BUILD 8 (IE Compatible)

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Media Center PC 6.0)

....

AVANT 2012 BUILD 8 (IE9 Standards)

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

....

AVANT ULTIMATE 2012 BUILD 8 (IE Compatible)

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Media Center PC 6.0)

....

AVANT ULTIMATE 2012 BUILD 8 (IE9 Standards)

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

....

AVANT ULTIMATE 2012 BUILD 8 (Mozilla Firefox)

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20111121 Firefox/8.0.1

....

CHROME 15.0.874.121

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

....

CHROME 16.0.912.63

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7

....

FIREFOX 6.0.2

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2

....

FIREFOX 8.0.1

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1

....

INTERNET EXPLORER 9.0.8112.16421 (32-bit)

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Media Center PC 6.0)

....

INTERNET EXPLORER 9.0.8112.16421 (64-bit)

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Media Center PC 6.0)

....

K-MELEON 1.5.4

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.24pre) Gecko/20100228 K-Meleon/1.5.4

....

KONQUEROR 4.7.00 (4.7.0)

Mozilla/5.0 (Windows; Windows 6.1 x86_64; en_US) KHTML/4.7.0 (like Gecko) Konqueror/4.7

....

LUNASCAPE6 ORION (Gecko)

(Lunascape Core Version 6.5.8.24780 / Unicode; Operating System Version 6.1.7601)

Gecko Plugin Version 3.6.24.24768 / Gecko 1.9.2.24

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.24) Gecko/20111115 Firefox/3.6.24 Lunascape/6.5.8.24780

....

LUNASCAPE6 ORION (Trident)

(Lunascape Core Version 6.5.8.24780 / Unicode; Operating System Version 6.1.7601)

Internet Explorer Version 9.0.8112.16421

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Media Center PC 6.0; Lunascape 6.5.8.24780)

....

LUNASCAPE6 ORION (WebKit)

(Lunascape Core Version 6.5.8.24780 / Unicode; Operating System Version 6.1.7601)

WebKit Plugin Version 1.3.7.24778 / WebKit 535.1 r91436

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Lunascape/6.5.8.24780 Safari/535.1

....

MAXTHON BROWSER 3.2.2.1000

(Version: 3.2.2.1000 / OS: 6.1.7601.Service Pack 1 / IE: 9.0.8112.16421)

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.12 (KHTML, like Gecko) Maxthon/3.0 Safari/534.12

....

OPERA 11.60 (Build 1185)

Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.229 Version/11.60

....

SAFARI 5.1.1 (7534.51.22)

5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22

....

SAFARI 5.1.2 (7534.52.7)

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7

....

SEAMONKEY 2.5 (target: i686-pc-mingw32)

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20111121 SeaMonkey/2.5

 

WINDOWS NT 5.1  -  Windows Fundamentals for Legacy PCs / Windows XP

AVANT 2012 BUILD 8 (IE Compatible)

4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Avant Browser; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 2.0.50727)

....

AVANT 2012 BUILD 8 (IE8 Standards)

4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Avant Browser; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 2.0.50727)

....

AVANT ULTIMATE 2012 BUILD 8 (IE Compatible)

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Avant Browser; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 2.0.50727)

....

AVANT ULTIMATE 2012 BUILD 8 (IE8 Standards)

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Avant Browser; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 2.0.50727)

....

AVANT ULTIMATE 2012 BUILD 8 (Mozilla Firefox)

Mozilla/5.0 (Windows NT 5.1; rv:8.0.1) Gecko/20111121 Firefox/8.0.1

....

CHROME 15.0.874.121

Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

 

In computing, a user agent is software, a software agent, that is acting on behalf of a user. For example, an email reader is a Mail User Agent, and in the Session Initiation Protocol (SIP), the term user agent refers to both end points of a communications session. In many cases, a user agent acts as a client in a network protocol used in communications within a client–server distributed computing system. In particular, the Hypertext Transfer Protocol identifies the client software originating the request, using a User Agent header, even when the client is not operated by a user. The SIP protocol, based on HTT, followed this usage. HTTP is used in a wide variety of applications, not only the traditional web-related web browsers, search engine crawlers, also know as spiders, screen readers, and braille browsers used by people with disabilities, applications on mobile phones, but also print drivers and home appliance control. When a software agent operates in a network protocol, it often identifies itself, its application type, operating system, software vendor, or software revision, by submitting a characteristic identification string to its operating peer. In HTTP, SIP, and SMTP/NNTP protocols, this identification is transmitted in a header field User-Agent. Bots, such as web crawlers, often also include a URL and/or e-mail address so that the webmaster can contact the operator of the bot. In HTTP, the User Agent string is often used for content negotiation, where the origin server selects suitable content or operating parameters for the response. For example, the User Agent string might be used by a web server to choose variants based on the known capabilities of a particular version of client software. The User Agent string is one of the criteria by which web crawlers may be excluded from accessing certain parts of a website using the Robots Exclusion Standard, via the robots.txt file. As with many other HTTP request headers, the information in the User Agent string contributes to the information which the client sends to the server, and the string can vary considerably from user to user. The format of the User Agent string in HTTP is a list of product and optional comments. The most important product component is listed first. Unfortunately, during the browser wars, many web servers were configured to only send web pages which required advanced features to clients which were identified as a version of Mozilla. For this reason, most web browsers use a User Agent value as follows: Mozilla/[version] ([system and browser information]) [platform] ([platform details]) [extensions]. The popularity of various web browser products has varied throughout the web's history, and this has influenced the design of websites in such a way websites are sometimes designed to work well only with particular browsers, rather than according to uniform standards by the World Wide Web Consortium (W3C) or the Internet Engineering Task Force (IETF). Websites often include code to detect browser version to adjust the page design sent according to the user agent string received. This may mean that less-popular browsers are not sent complex content, even though they might be able to deal with it correctly, or in extreme cases, refused all content. Thus, various browsers have a feature to cloak or spoof their identification to force certain server-side content. For example, the Android browser identifies itself as Safari in order to aid compatibility. Other HTTP client programs, like download managers and offline browsers, often have the ability to change the user agent string. Spam bots and web scrapers often use fake user agents. At times it has been popular amongst web developers to initiate Viewable With Any Browser campaigns, encouraging developers to design webpages which work equally well with any browser.

A result of user agent spoofing may be collected statistics of web browser usage are inaccurate. The term user agent sniffing refers to the practice of websites showing different content when viewed with a certain user agent. On the internet, this will result in a different site being shown when browsing the page with a specific browser. A useful example of this is Microsoft Exchange Server 2003's Outlook Web Access feature. When viewed with Internet Explorer 6 or newer, more functionality is displayed compared to the same page in older browsers, because older browsers could not render the same content. User agent sniffing is mostly considered poor practice, since it encourages browser-specific design and penalizes new browsers with unrecognized user agent identifications. Instead, the W3C recommends creating HTML markup which is standards compliant, allowing correct rendering in as many browsers as possible, and to test for specific browser features rather than particular browser versions or brands. Web browsers created in the United States, such as Netscape Navigator and Internet Explorer, use the letters U, I, and N to specify the encryption strength in the user agent string. Until the United States government allowed encryption with keys longer than 40 bits to be exported, in 1996, vendors shipped various browser versions with different encryption strengths. "U" stands for "USA," for the version with 128-bit encryption; "I" stands for "International," the browser has 40-bit encryption and can be used anywhere in the world; and "N" stands for "None," no encryption. Following the lifting of export restrictions, most vendors supported 256-bit encryption.