Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How is the useragent is set

  • 4 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 3 views
  • Last reply by cor-el

How does firefox determine the user agent? I'm especially interested in how the operating system is detected. Is there a way to manipulate the detection?

How does firefox determine the user agent? I'm especially interested in how the operating system is detected. Is there a way to manipulate the detection?

All Replies (4)

Hi, you may find what is listed in Google search using your question enough information : https://www.google.com/search?q=How+does+firefox+determine+the+user+agent%3F&ie=utf-8&oe=utf-8&client=firefox-b

Note that it not only the user agent, but there are more navigator properties.

The user agent is send via the HTTP request headers, but JavaScript running on a page can detect more. There are override prefs for most of these, some examples:

  • general.useragent.override
  • general.platform.override

Note that some properties are spoofed when Resist Fingerprinting is enabled.