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

搜尋 Mozilla 技術支援網站

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

了解更多

Wrong useragent is being used

more options

I'm using FF 70.0.1 on Mac OS 10.15 Catalina, and Firefox is reporting the useragent to be Windows. I noticed it while downloading some apps that kept defaulting to the Windows version download link. I have a dualboot with Mac OS 10.14 Mojave, and this problem does not occur on that installation. I went into about:config to see if it was changed and it wasn't. Everything that has to do with the useragent in about:config is already configured to default. I use FF almost exclusively on every computer, this is the first I've seen this happen.

I'm using FF 70.0.1 on Mac OS 10.15 Catalina, and Firefox is reporting the useragent to be Windows. I noticed it while downloading some apps that kept defaulting to the Windows version download link. I have a dualboot with Mac OS 10.14 Mojave, and this problem does not occur on that installation. I went into about:config to see if it was changed and it wasn't. Everything that has to do with the useragent in about:config is already configured to default. I use FF almost exclusively on every computer, this is the first I've seen this happen.
附加的畫面擷圖

所有回覆 (4)

more options

User agent detection (or sniffing) is the mechanism used for parsing the User-Agent string and inferring physical and applicative properties about the device and its browser. But let get the record straight. User-Agent sniffing is a future fail strategy. By design, you will detect only what is known, not what will come. The space of small devices (smartphones, feature phones, tablets, watches, arduino, etc.) is a very fast-paced evolving space. The diversity in terms of physical characteristics will only increase. Updating databases and algorithms for identifying correctly is a very high maintenance task which is doomed to fail at a point in the future. Sites get abandoned, libraries are not maintained and Web sites will break just because they were not planned for the future coming devices. All of these have costs in resources and branding.

New solutions are being developed for helping people to adjust the user experience depending on the capabilities of the products, not its name. Responsive design helps to create Web sites that are adjusting for different screen sizes. Each time you detect a product or a feature, it is important to thoroughly understand why you are trying to detect this feature. You could fall in the same traps as the ones existing with user agent detection algorithms.

We have to deal on a daily basis with abusive user agent detection blocking Firefox OS and/or Firefox on Android. It is not only Mozilla products, every product and brand has to deal at a point with the fact to be excluded because they didn’t have the right token to pass an ill-coded algorithm. User agent detection leads to situation where a new player can hardly enter the market even if it has the right set of technologies. Remember that there are huge benefits to create a system which is resilient to many situations.

Some companies will be using the User-Agent string as an identifier for bypassing a pay-wall or offering specific content for a group of users during a marketing campaign. It seems to be an easy solution at first but it creates an environment easy to by-pass in spoofing the user agent.

more options

jlj945 said

I'm using FF 70.0.1 on Mac OS 10.15 Catalina, and Firefox is reporting the useragent to be Windows. I noticed it while downloading some apps that kept defaulting to the Windows version download link. I have a dualboot with Mac OS 10.14 Mojave, and this problem does not occur on that installation. I went into about:config to see if it was changed and it wasn't. Everything that has to do with the useragent in about:config is already configured to default. I use FF almost exclusively on every computer, this is the first I've seen this happen.

Besides the useragent being modified as this article helps fix that at https://support.mozilla.org/en-US/kb/how-reset-default-user-agent-firefox

It may be possible an app is modifying what useragent the Firefox web browser is displaying as to websites. Some proxy or connection software perhaps?

On Windows you can run Firefox in a Windows compatibility mode (never needed) and the UA can be modified at least in Windows version being shown.

Not sure about on Mac OSX though.

由 James 於 修改

more options

Senali Madawala said

snip

In case you misunderstood the question asked, the OP is using Firefox on Mac OSX yet the Firefox useragent displayed to websites such as here is as if the OP is using Firefox 68.0 on Windows and is not correct.

由 James 於 修改

more options

Did you enable this preference in about:config --

privacy.resistFingerprinting

That may override true information and show sites the "most common" information instead, including the user agent string. Whether that setting really helps is debatable.