User agent: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (added Firefox and Mozilla Suite categories)
 
Line 1: Line 1:
: ''This article applies to both Firefox and Mozilla Suite.''
#REDIRECT [[General_concepts#User agent]]
 
==User agent string==
The  user agent string is a piece of text which identifies the name and version of a given browser. It can be accessed by Javascript and numerous other means. It is used by websites to determine which browser you use. Some webmasters do this solely for the purpose of keeping statistics on browser usage. Others will deliberately reject certain browsers based on the user agent string, or redirect them to different version of a page.
 
To see your own user agent string, copy <code>javascript:alert(navigator.userAgent)</code> into the [[Location Bar]] and press Enter. Alternately,  go to the "Help" menu and select "About Mozilla Firefox" (or other product name) where the user agent string is displayed at the bottom of the dialog.
 
If a web site is rejecting access solely based on the user agent string, you may wish to install the [https://addons.mozilla.org/extensions/moreinfo.php?id=59 User Agent Switcher] extension, which allows you to change your user agent string in order to mimic that of other browsers such as Microsoft Internet Explorer. Note that this may [[Java#.22Java_Plug-in_for_Netscape_Navigator_should_not_be_used_in_Microsoft_Internet_Explorer.22 | cause problems with the Java plugin]].
 
==External links==
*user agent strings at [http://en.wikipedia.org/wiki/User_agent Wikipedia].
 
{{stub}}
[[Category:General concepts]]
[[Category:Firefox]]
[[Category:Mozilla Suite]]

Latest revision as of 22:19, 11 September 2006