Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It might help to know just how you created your custom user agent. In Firefox, I use an add-on called "User Agent Switcher and Manager" which generally has worked very nicely for me.
That said, OP had a previous thread that shows they're a bit hazy on what a user agent actually is, and I got the impression they weren't convinced at the end of it: https://www.linuxquestions.org/quest...el-4175705017/
Chromium-based browsers have a builtin developer feature for changing agents. I would not expect a Firefox extension to have a different result, however it might be worth a try. Still, if it worked differently than the developer tool, we'd need a Chromium equivalent.
The missing public knowledge is the esoteric means of populating the agent.
My old post ondoho brings up was on Android. In that case, the phone model is included in the string. How? In this desktop case, it's "Brave" in spite of an overridden string. How?
2 points:
Chromium-based browsers have a builtin developer feature for changing agents. I would not expect a Firefox extension to have a different result, however it might be worth a try. Still, if it worked differently than the developer tool, we'd need a Chromium equivalent.
The missing public knowledge is the esoteric means of populating the agent.
My old post ondoho brings up was on Android. In that case, the phone model is included in the string. How? In this desktop case, it's "Brave" in spite of an overridden string. How?
What are you seeing that makes you think that duckduckgo.com "knows" you are using Brave?
Evo2.
I am on a 32-bit machine not supported by Brave at-the-moment, but when I am back on 64-bit I will post a graphic.
If you type "What is my user agent?" duckduckgo.com will display your string without a need for links (like "weather" on Google, etc.). Not sure what that is called, but there are a lot of search questions answered by the engine itself.
Duckduckgo yesterday knew I was using Brave despite my string.
I am on a 32-bit machine not supported by Brave at-the-moment, but when I am back on 64-bit I will post a graphic.
If you type "What is my user agent?" duckduckgo.com will display your string without a need for links (like "weather" on Google, etc.). Not sure what that is called, but there are a lot of search questions answered by the engine itself.
Sounds like you messed up your browser settings. When I do what you describe above, duckduckgo.com regurgitates whatever user agent string I send it.
If your user agent isn't showing brave, but duckduckgo knows you're using brave, its probably something from what is shown there, or a best guess based on what it can determine.
If you type "What is my user agent?" duckduckgo.com will display your string without a need for links
With JS enabled, DuckDuckGo - quite clearly - outputs the value of the HTTP User-Agent request header, along with other headers.
For the non-JS version, it doesn't list the other headers, but still provably outputs the HTTP User-Agent request header:
Code:
$ curl 'https://duckduckgo.com/?q=what+is+my+user+agent' -isS -A 'potato' | grep -o 'Your user agent:[^<]*'
Your user agent: potato
$ curl 'https://html.duckduckgo.com/html?q=what+is+my+user+agent' -isS -A 'tomato' | grep -o 'Your user agent:[^<]*'
Your user agent: tomato
To understand how websites can get information not sent via HTTP headers, press F12 and examine the output of "console.dir(navigator)" then read the documentation of those properties.
@JASlinux
If you want to see the header that your web browser or script is reporting...
Open a terminal and enter
Code:
ncat -klp 8000 -v
#or
netcat -l -p 8000 -v
Then http://127.0.0.1:8000 in your web browser or script. The header/user agent that it reports will be in the terminal. You can change use agents in your browser and reload as many times as you wish.
And that will be exactly what your browser is sending.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.