Issue with Custom User Agent Overrides Not Working

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
Frittlefore
New to the forum
New to the forum
Posts: 1
Joined: 2025-04-03, 08:53

Issue with Custom User Agent Overrides Not Working

Unread post by Frittlefore » 2025-04-03, 09:08

I’ve been trying to set custom User Agent overrides for specific sites, but they don’t seem to be applying properly. I’ve followed the steps outlined in the official documentation and various forum posts, but the browser still seems to be sending the default UA string instead of my custom one.

Here’s what I’ve done so far:

Went to

Code: Select all

about:config
and set

Code: Select all

general.useragent.override.example.com
(replacing example.com with the actual site) to a custom UA string.

Verified that

Code: Select all

general.useragent.site_specific_overrides
is set to

Code: Select all

true
.

Restarted the browser to ensure changes took effect.

Used web debugging tools (F12 > Network > Headers) to check the

Code: Select all

User-Agent
being sent.

Despite these steps, the override doesn’t seem to take effect, and sites continue to detect the default UA string. Interestingly, if I set general.useragent.override globally, it works, but I’d prefer site-specific overrides instead of changing it for all sites.

I’m using Pale Moon 33.0.1 (64-bit) on Windows 10, and I have no major extensions installed that should interfere with this behavior.

Has anyone else encountered this issue? Is there something I might be missing, or is there a known bug affecting this feature in recent versions?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37634
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Issue with Custom User Agent Overrides Not Working

Unread post by Moonchild » 2025-04-03, 10:00

Just to be sure I verified this and it seems to work just fine. Browser restarts aren't required for these changes, by the way. They are picked up immediately.
If you are checking in the devtools/network tab, make sure that the "domain" of the request matches the domain you're trying to override.
Frittlefore wrote:
2025-04-03, 09:08
Interestingly, if I set general.useragent.override globally, it works, but I’d prefer site-specific overrides instead of changing it for all sites.
Using "general.useragent.override" without a domain should not work. If it does, you might be using an add-on that takes over this specific functionality at the network level (in which case your initial problem might also stem from this)... :coffee:
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2399
Joined: 2018-05-05, 13:29

Re: Issue with Custom User Agent Overrides Not Working

Unread post by vannilla » 2025-04-03, 11:33

If you are unsure, you can use extensions like sasuga to make sure the override is stored correctly. Making typos and not noticing is normal after all.