User agent: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
m ("Extension Room is no longer listing extensions which can be found on Mozilla Update.")
Line 3: Line 3:
The user agent is a string uniquely identifying a given browser. It can be accessed by Javascript and numerous other means. It is used by websites to determine which browser you use for various reasons.  For example, some webmasters will read this information solely for the purpose of keeping statistics on browser usage. Others will delibarately reject certain browsers based on the text in your user agent.  Still others will redirect certain browsers to different version of a page.  
The user agent is a string uniquely identifying a given browser. It can be accessed by Javascript and numerous other means. It is used by websites to determine which browser you use for various reasons.  For example, some webmasters will read this information solely for the purpose of keeping statistics on browser usage. Others will delibarately reject certain browsers based on the text in your user agent.  Still others will redirect certain browsers to different version 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 [http://extensionroom.mozdev.org/more-info/useragentswitcher User Agent Switcher]. To see your own user agent, copy <code>javascript:alert(navigator.userAgent)</code> 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 [https://addons.mozilla.org/extensions/moreinfo.php?id=59 User Agent Switcher]. To see your own user agent, copy <code>javascript:alert(navigator.userAgent)</code> into your Location Bar and press Enter.


You can read more about user agent strings at [http://en.wikipedia.org/wiki/User_agent Wikipedia].
You can read more about user agent strings at [http://en.wikipedia.org/wiki/User_agent Wikipedia].


{{stub}}
{{stub}}

Revision as of 20:44, 2 September 2005

This article applies to both Firefox and Mozilla Suite.

The user agent is a string uniquely identifying a given browser. It can be accessed by Javascript and numerous other means. It is used by websites to determine which browser you use for various reasons. For example, some webmasters will read this information solely for the purpose of keeping statistics on browser usage. Others will delibarately reject certain browsers based on the text in your user agent. Still others will redirect certain browsers to different version 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.

You can read more about user agent strings at Wikipedia.