Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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 replies
  • 1 has this problem
  • 1 view
  • Last reply by cor-el

more options

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)

more options
more options

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

more options
more options

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.