All Topics  
User agent

 

   Email Print
   Bookmark   Link






 

User agent



 
 
A user agent is the client
Client (computing)

A client is an Application software or system that accesses a remote service on another computer system, known as a Server , by way of a Computer network....
 application used with a particular network protocol; the phrase is most commonly used in reference to those which access the World Wide Web
World Wide Web

The World Wide Web is a very large set of interlinked hypertext documents accessed via the Internet. With a Web browser, one can view Web pages that may contain writing, s, videos, and other multimedia and navigate between them using hyperlinks....
, but other systems such as SIP
Session Initiation Protocol

The Session Initiation Protocol is a Signalling protocol, widely used for setting up and tearing down multimedia communication sessions such as Internet telephony and video calls over the Internet....
 use the term user agent to refer to the user's phone. Web user agents range from web browser
Web browser

A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network....
s and e-mail client
E-mail client

An e-mail client is a frontend computer program used to manage e-mail.Sometimes, the term e-mail client is also used to refer to any agent acting as a Client toward an e-mail server, independently of it being a real MUA, a relaying server, or a human typing directly on a telnet terminal....
s to search engine
Web search engine

A Web search engine is a tool designed to search for information on the World Wide Web. The search results are usually presented in a list and are commonly called hits....
 crawler
Web crawler

A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner. Other terms for Web crawlers are ants, automatic indexers, bots, and worms or Web spider, Web robot, or?especially in the FOAF community?Web scutter....
s ("spiders"), as well as mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
s, screen reader
Screen reader

A screen reader is a Application software that attempts to identify and interpret what is being displayed on the screen . This interpretation is then re-presented to the user with text-to-speech, sound icons, or a Refreshable Braille display....
s and braille
Braille

The Braille system is a method that is widely used by blindness people to read and write. Braille was devised in 1821 by Louis Braille, a Frenchman....
 browsers used by people with disabilities. When Internet users visit a web site, a text string
String (computer science)

In computer programming and some branches of mathematics, a string is an ordered sequence of symbols. These symbols are chosen from a predetermined set or alphabet....
 is generally sent to identify the user agent to the server
Web server

The term web server can mean one of two things:# A computer program that is responsible for accepting Hypertext Transfer Protocol requests from clients , and Server them HTTP responses along with optional data contents, which usually are web pages such as Hypertext Markup Language documents and linked objects ....
.






Discussion
Ask a question about 'User agent'
Start a new discussion about 'User agent'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A user agent is the client
Client (computing)

A client is an Application software or system that accesses a remote service on another computer system, known as a Server , by way of a Computer network....
 application used with a particular network protocol; the phrase is most commonly used in reference to those which access the World Wide Web
World Wide Web

The World Wide Web is a very large set of interlinked hypertext documents accessed via the Internet. With a Web browser, one can view Web pages that may contain writing, s, videos, and other multimedia and navigate between them using hyperlinks....
, but other systems such as SIP
Session Initiation Protocol

The Session Initiation Protocol is a Signalling protocol, widely used for setting up and tearing down multimedia communication sessions such as Internet telephony and video calls over the Internet....
 use the term user agent to refer to the user's phone. Web user agents range from web browser
Web browser

A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network....
s and e-mail client
E-mail client

An e-mail client is a frontend computer program used to manage e-mail.Sometimes, the term e-mail client is also used to refer to any agent acting as a Client toward an e-mail server, independently of it being a real MUA, a relaying server, or a human typing directly on a telnet terminal....
s to search engine
Web search engine

A Web search engine is a tool designed to search for information on the World Wide Web. The search results are usually presented in a list and are commonly called hits....
 crawler
Web crawler

A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner. Other terms for Web crawlers are ants, automatic indexers, bots, and worms or Web spider, Web robot, or?especially in the FOAF community?Web scutter....
s ("spiders"), as well as mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
s, screen reader
Screen reader

A screen reader is a Application software that attempts to identify and interpret what is being displayed on the screen . This interpretation is then re-presented to the user with text-to-speech, sound icons, or a Refreshable Braille display....
s and braille
Braille

The Braille system is a method that is widely used by blindness people to read and write. Braille was devised in 1821 by Louis Braille, a Frenchman....
 browsers used by people with disabilities. When Internet users visit a web site, a text string
String (computer science)

In computer programming and some branches of mathematics, a string is an ordered sequence of symbols. These symbols are chosen from a predetermined set or alphabet....
 is generally sent to identify the user agent to the server
Web server

The term web server can mean one of two things:# A computer program that is responsible for accepting Hypertext Transfer Protocol requests from clients , and Server them HTTP responses along with optional data contents, which usually are web pages such as Hypertext Markup Language documents and linked objects ....
. This forms part of the HTTP
Hypertext Transfer Protocol

Hypertext Transfer Protocol is an application-level protocol for distributed, collaborative, hypermedia information systems. Its use for retrieving inter-linked resources led to the establishment of the World Wide Web....
 request, prefixed with User-Agent: (case does not matter) and typically includes information such as the application name, version, host operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
, and language. Bot
Internet bot

Internet bots, also known as web robots, WWW robots or simply bots, are software applications that run automated tasks over the Internet....
s, such as web crawlers, often also include a URL
Uniform Resource Locator

In Information technology, a Uniform Resource Locator is a type of Uniform Resource Identifier that specifies where an identified resource is available and the mechanism for retrieving it....
 and/or e-mail address
E-mail address

An e-mail address identifies a location to which e-mail messages can be delivered. An e-mail address on the modern Internet looks like, for example, jsmith@example.com and is usually read as "jsmith at example dot com"....
 so that the webmaster
Webmaster

The webmaster , also called the web architect, the web developer, the site author, the website administrator, or the webmeister, is the person responsible for designing, developing, marketing, or maintaining a website....
 can contact the operator of the bot.

The user-agent string is one of the criteria by which crawlers can be excluded from certain pages or parts of a website using the "Robots Exclusion Standard
Robots Exclusion Standard

The robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a website which is otherwise publicly viewable....
" (robots.txt). This allows webmasters who feel that certain parts of their website should not be included in the data gathered by a particular crawler, or that a particular crawler is using up too much bandwidth
Bandwidth (computing)

In computer networking and computer science, digital bandwidth, network bandwidth or just bandwidth is a measure of available or consumed data communication resources expressed in bit/s or multiples of it ....
, to request that crawler not to visit those pages.

User agent spoofing

At various points in its history, use of the Web has been dominated by one browser to the extent that many websites are designed to work only with that particular browser, rather than according to standards from bodies such as the W3C and IETF. Such sites often include "browser sniffing" code, which alters the information sent out depending on the User-Agent string received. This can 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 "cloak" or "spoof" this string, in order to identify themselves as something else to such detection code; often, the browser's real identity is then included later in the string.

The earliest example of this is Internet Explorer
Internet Explorer

Windows Internet Explorer , commonly abbreviated to IE, is a series of graphical user interface web browsers developed by Microsoft and included as part of the Microsoft Windows line of operating systems starting in 1995....
's use of a User-Agent string beginning "Mozilla/ (compatible; MSIE ...", in order to receive content intended for Netscape Navigator
Netscape Navigator

Netscape Navigator and Netscape are the names for the proprietary software web browser popular in the 1990s, and the flagship product of the Netscape Communications Corporation, and the dominant web browser in terms of Usage share of web browsers....
, its main rival at the time of its development. This was not a reference to the open-source Mozilla
Mozilla

Mozilla was the official, public, original name of Mozilla Application Suite by the Mozilla Foundation, currently known as SeaMonkey internet suite....
 browser, which was developed much later, but to the original codename for Navigator, which was also the name of the Netscape company mascot
Mozilla (mascot)

Mozilla was the mascot of the now disbanded Netscape Communications Corporation.Mozilla takes the form of a green and purple cartoon lizard. Programmer Jamie Zawinski came up with the name during a meeting while working at the company....
. This format of User-Agent string has since been copied by other user agents, partly because Explorer, in turn, came to dominate.

When Internet Explorer became the dominant web browser, rivals such as Firefox
Mozilla Firefox

Mozilla Firefox is a web browser descended from the Mozilla Application Suite and managed by Mozilla Corporation. Official versions are distributed under the terms of the proprietary EULA....
, Safari
Safari (web browser)

Safari is a web browser developed by Apple Inc.. First released as a beta on January 7, 2003 on the company's Mac OS X operating system, it became Apple's default browser beginning with Mac OS X v10.3, commonly known as "OS X Panther." Apple has also made Safari the native browser for the iPhone OS....
, and Opera
Opera (web browser)

Opera is a web browser and Internet suite developed by the Opera Software company. Opera handles common Internet-related tasks such as displaying web sites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent , and reading web feeds....
 implemented systems whereby the user could select a false User-Agent string to send, such as that of a recent version of Explorer. Some – e.g. Firefox and Safari – duplicate the User-Agent string they are trying to spoof exactly; others – e.g. Opera – duplicate the User-Agent string but add the genuine browser name to the end. This latter approach, of course, leads to a string containing three names and versions: first, the user agent claims to be "Mozilla" (i.e. Netscape Navigator); then, "MSIE" (Internet Explorer); and finally, the actual browser, such as "Opera". Opera also offers a full masking as Internet Explorer or Firefox, which hides "Opera" completely.

Beside browsers, other programs using the HTTP protocol, like most download manager
Download manager

A download manager is a computer program dedicated to the task of Uploading and downloading possibly unrelated stand-alone files from the Internet for storage....
s and offline browsers, also had the ability to change the user agent string sent to servers to user's liking. This is presumably done in an effort to maintain compatibility with certain servers (some servers refused to serve those programs right away because they are mostly used carelessly, thus burdening the server).

Some web developers have started a "Viewable With Any Browser" campaign which encourages developers to design webpages that work regardless of the browser used.

One result of user agent spoofing is that the usage share
Usage share of web browsers

Usage share, in web browser statistics, is the percentage of visitors to a group of web sites that use a particular browser. For example, when it is said that Internet Explorer has 67% usage share, it means Internet Explorer is used by 67% of visitors that visit a given set of sites....
 of Internet Explorer, the user agent browsers typically spoof, is probably overestimated, and the usage share of other browsers may be underestimated. User agent spoofing can also provide a security issue by spoofing search engine bots and bypassing key parts in a website.

User agent sniffing

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 (e.g. Microsoft Internet Explorer). An infamous example of this is Microsoft Exchange Server
Microsoft Exchange Server

Microsoft Exchange Server is a messaging and collaborative software product developed by Microsoft. It is part of the Microsoft Servers line of Server products and is widely used by enterprises using Microsoft infrastructure solutions....
 2003's Outlook Web Access feature. When viewed with IE, much more functionality is displayed compared to the same page in any other browser. User agent sniffing is mostly considered poor practice for Web 2.0
Web 2.0

The term "Web 2.0" refers to a perceived second generation of web development and web design, that aims to facilitate communication, secure information sharing, interoperability, and collaboration on the World Wide Web....
 web sites, since it encourages browser specific design. Many webmasters are recommended to create an HTML markup that is as standardised as possible, to allow correct rendering in as many browsers as possible.

Websites specifically targeted towards mobile phones, like NTT DoCoMo
NTT DoCoMo

is the predominant mobile phone operator in Japan. The name is officially an abbreviation of the phrase, "do communications over the mobile network", and is also from a phrase dokodemo, meaning "everywhere" in Japanese language....
's I-Mode
I-mode

NTT DoCoMo's i-mode is a wireless internet service popular in Japan. Unlike Wireless Application Protocol, i-mode encompasses a wider variety of internet standards, including web access, e-mail and the packet switching network that delivers the data....
 or Vodafone
Vodafone

Vodafone is a mobile network operator with its headquarters in Newbury, Berkshire, Berkshire, England, UK. It is the largest mobile telecommunications network company in the world by turnover and has a market value of about ?75 billion ....
's Vodafone Live!
Vodafone live!

Vodafone live! is the brand name for the multimedia portal service of mobile phone operator Vodafone, which was initially developed by Japan's J-Phone under the J-Sky brand....
 portals, often rely heavily on user agent sniffing, since mobile browsers often differ greatly from each other. Many developments in mobile browsing have been made in the last few years, while many older phones that do not possess these new technologies are still heavily used. Therefore, mobile webportals will often generate completely different markup code depending on the mobile phone used to browse them. These differences can be small (e.g. resizing of certain images to fit smaller screens), or quite extensive (e.g. rendering of the page in WML
Wireless Markup Language

Wireless Markup Language, based on XML, is a markup language intended for devices that implement the Wireless Application Protocol specification, such as mobile phones, and preceded the use of other markup languages now used with WAP, such as XHTML and even standard HTML ....
 instead of XHTML
XHTML

The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also conforms to XML syntax....
).

There are a number of ways to perform user agent sniffing within web applications, including using public domain scripts and commercial products.

Encryption strength "U" / "I" / "N"

Browsers created in the United States, such as Netscape Navigator
Netscape Navigator

Netscape Navigator and Netscape are the names for the proprietary software web browser popular in the 1990s, and the flagship product of the Netscape Communications Corporation, and the dominant web browser in terms of Usage share of web browsers....
, Internet Explorer
Internet Explorer

Windows Internet Explorer , commonly abbreviated to IE, is a series of graphical user interface web browsers developed by Microsoft and included as part of the Microsoft Windows line of operating systems starting in 1995....
, and some others, use one of these three letters to specify the browser's encryption
Encryption

In cryptography, encryption is the process of transforming information using an algorithm to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key ....
 strength. Since the US government formerly would not allow encryption higher than 40-bit to be exported from the country, different versions were released 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), "N" stands for "None" (no encryption). Originally the "U" version of such browsers was only available for download to those in the USA. The US government has since loosened its policy and exporting high encryption is now permitted to most countries (see Export of cryptography
Export of cryptography

The export of cryptography is the transfer from one country to another of devices and technology related to cryptography.Since World War II, many governments, including the United States and its NATO allies, have regulated the export of cryptography for national security considerations, and, for a time, defined cryptography to be a munition...
 for more information). Now Netscape and Mozilla
Mozilla Foundation

The Mozilla Foundation is a non-profit organization that exists to support and provide leadership for the open source Mozilla project. The organization sets the policies that govern development, operate key infrastructure and control trademarks and other intellectual property....
 distribute their browsers only in a "U" version, supporting up to 256-bit encryption, since an international version is no longer required.

This information can be seen in Mozilla Firefox browser by typing about:config and searching for the string general.useragent.security.

See also

  • Robots Exclusion Standard
    Robots Exclusion Standard

    The robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a website which is otherwise publicly viewable....
  • Web crawler
    Web crawler

    A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner. Other terms for Web crawlers are ants, automatic indexers, bots, and worms or Web spider, Web robot, or?especially in the FOAF community?Web scutter....
  • Wireless Universal Resource File (WURFL)
    Wurfl

    WURFL stands for Wireless Universal Resource File. It is part of a FOSS community effort focused on the problem of presenting content on the wide variety of wireless devices....
  • User Agent Profile (UAProf)
    UAProf

    The User Agent Profile specification is concerned with capturing capability and preference information for wireless devices. This information can be used by content providers to produce content in an appropriate format for the specific device....


External links