為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

User-agent info required

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 finitarry

more options

Where would I get more information about various user-agents? The list of user-agents that one can get for User Agent Switcher has only the user-agent strings filled in, and nothing else. To make a really convincing fake UA, one needs to have App Code Name, App Name, App Version, and Platform filled in correctly as well. The App Version and Platform differ wildly among different browsers and operating systems. Where would I find that for Linux browsers, mobile devices, etc.?

Where would I get more information about various user-agents? The list of user-agents that one can get for User Agent Switcher has only the user-agent strings filled in, and nothing else. To make a really convincing fake UA, one needs to have App Code Name, App Name, App Version, and Platform filled in correctly as well. The App Version and Platform differ wildly among different browsers and operating systems. Where would I find that for Linux browsers, mobile devices, etc.?

所有回覆 (4)

more options
more options

I do not mean the parts of the user-agent string in that field in the request header. I mean the other information that servers can get about the browser with javascript code to do detailed browser-sniffing. If you choose Edit User Agents from the menu for User-agent Switcher and add a new user-agent, you will see that there are 5 items that are filled in from your browser automatically to begin. The first is the user-agent string, but the others are App Code Name, App Name, App Version, and Platform. It is the last four that are missing from the list of fake user-agents that you get with the file that is made available for download. I wanted to fill in those blanks for other browsers to make more convincing fakes, so I need that information.

more options

If the server checks for capabilities then faking such navigator properties won't help you.

The appCodeName and appVersion also show as part of the user agent (Mozilla/5.0 (Macintosh; -> 5.0 (Macintosh), so you can inspect the various user agents and extract this data. In Firefox the AppName is always Netscape and the AppVersion 5.0 plus a platform code

Your Safari user agent:

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8)

appCodeName: Mozilla appName: Netscape appVersion: 5.0 (Macintosh) platform: Intel Mac OS X 10_6_8

On Linux, you usually see Mozilla/5.0 (X11; Linux i686; ) or Mozilla/5.0 (X11; Linux x86_64; ) So appVersion: 5.0 (X11) and platform : Linux i686 or Linux x86_64

See also:

由 cor-el 於 修改

more options

Thanks for the pages. I have bookmarked them for reference. Not quite what I need, but informative.

As far as the Safari information goes, actually, the info you gave is not quite right.

  • userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10
  • appCodeName and appName are correct
  • appVersion: 5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10
  • platform: MacIntel

For SeaMonkey, that info is:

  • userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30
  • appCodeName and appName are the same
  • appVersion = 5.0 (Macintosh)
  • platform = MacIntel

For Opera using a Presto rendering engine:

  • userAgent: Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.10.229 Version/11.62
  • appCodeName: Mozilla
  • appName: Opera
  • appVersion: 9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en)
  • platform: MacIntel

The format for the platform differs among operating systems. For Windows 32 bit, the platform is Win32, and for Windows 64 bit, the platform is Win64. For a Mac with a Motorola CPU, the platform is MacPPC. The exact format used for version differs with the browser used. My problem is that I do not know all of them. The examples I am giving are from browsers that I have and can test with testing sites. A good testing site is here: http://dev.jeffersonscher.com/jstest.asp