X
Tap here to go to the mobile version of the site.

Support Forum

Is there a way to change the user agent posted in http headers in Firefox 50+

Posted

Hello all, For reasons of privacy, I want to be able to change the OS identifier in the user-agent string that is sent with every http request. I remember with older versions of firefox this could be accomplished in about:config and changing the useragent string, but this doesn't seem to be an option with newer versions. I have tried on both firefox for FreeBSD and Windows 8.1, to no avail.

If it is assigned at build time, could you please direct me to the area of code where this is handled so I can fork the code, change it locally, and build it for personal use?

This is the string I am trying to change: Mozilla/5.0 (X11; FreeBSD amd64; rv:53.0) Gecko/20100101 Firefox/53.0

I suspect it may be stored in one of the files in the ~/.mozilla directory, and while I wait for a response, I will be picking through there.

Thanks in advance,

Hello all, For reasons of privacy, I want to be able to change the OS identifier in the user-agent string that is sent with every http request. I remember with older versions of firefox this could be accomplished in about:config and changing the useragent string, but this doesn't seem to be an option with newer versions. I have tried on both firefox for FreeBSD and Windows 8.1, to no avail. If it is assigned at build time, could you please direct me to the area of code where this is handled so I can fork the code, change it locally, and build it for personal use? This is the string I am trying to change: Mozilla/5.0 (X11; FreeBSD amd64; rv:53.0) Gecko/20100101 Firefox/53.0 I suspect it may be stored in one of the files in the ~/.mozilla directory, and while I wait for a response, I will be picking through there. Thanks in advance,

Additional System Details

Installed Plug-ins

Privacy Badger (from EFF)

Application

  • User Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:53.0) Gecko/20100101 Firefox/53.0

More Information

Question owner

Also forgot to mention: I tried adding the "user agent switcher addon". Add on did not seem to work in firefox 53 on FreeBSD. Will try windows next time I have a windows machine.

Also forgot to mention: I tried adding the "user agent switcher addon". Add on did not seem to work in firefox 53 on FreeBSD. Will try windows next time I have a windows machine.
FredMcD
  • Top 10 Contributor
4246 solutions 59390 answers

Chosen Solution

https://support.mozilla.org/en-US/kb/how-reset-default-user-agent-firefox http://www.howtogeek.com/113439/how-to-change-your-browsers-user-agent-without-installing-any-extensions/

Question owner

Just to cherrypick from those documents:

general.useragent.override is the string that needs to be added and set

Thanks FredMcD

Just to cherrypick from those documents: general.useragent.override is the string that needs to be added and set Thanks FredMcD
FredMcD
  • Top 10 Contributor
4246 solutions 59390 answers

Glad to help. Safe Surfing.

Glad to help. Safe Surfing.