User agent: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(Minor style things so everything can be in Hao2lian-style.)
(Mozilla-izing!)
Line 1: Line 1:
: ''This article applies for both Firefox and Mozilla.''
The user agent is a string of text uniquely identifying a given browser.  It can be accessed by Javascript and numerous other means. It is used by certain websites to determine which browser for various reasons.  For example, some webmasters will read this information solely for the purpose of keeping statistics on browser use.  Others will delibarately reject certain browsers based on the text in your user agents.  Still others will redirect certain browsers do different versions of a page.  
The user agent is a string of text uniquely identifying a given browser.  It can be accessed by Javascript and numerous other means. It is used by certain websites to determine which browser for various reasons.  For example, some webmasters will read this information solely for the purpose of keeping statistics on browser use.  Others will delibarately reject certain browsers based on the text in your user agents.  Still others will redirect certain browsers do different versions of a page.  


If a web site is rejecting access solely based on user agent, you may be able to access a page anyway in [[Firefox]] by installing a [http://extensionroom.mozdev.org/more-info/useragentswitcher user agent switcher].  To see your own user agent, copy <tt>javascript:alert(navigator.userAgent)</tt> into your Location Bar and press Enter.
If a web site is rejecting access solely based on user agent, you may be able to access a page anyway by installing the [http://extensionroom.mozdev.org/more-info/useragentswitcher User Agent Switcher].  To see your own user agent, copy <tt>javascript:alert(navigator.userAgent)</tt> into your Location Bar and press Enter.


{{stub}}
{{stub}}

Revision as of 14:55, 25 March 2005

This article applies for both Firefox and Mozilla.

The user agent is a string of text uniquely identifying a given browser. It can be accessed by Javascript and numerous other means. It is used by certain websites to determine which browser for various reasons. For example, some webmasters will read this information solely for the purpose of keeping statistics on browser use. Others will delibarately reject certain browsers based on the text in your user agents. Still others will redirect certain browsers do different versions of a page.

If a web site is rejecting access solely based on user agent, you may be able to access a page anyway by installing the User Agent Switcher. To see your own user agent, copy javascript:alert(navigator.userAgent) into your Location Bar and press Enter.