Forum Moderators: open

Message Too Old, No Replies

Windows 11 User Agent

         

smallcompany

5:51 pm on Feb 14, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you run Windows 11, what is the user agent string from your browser? What do you get back if you ask for your user agent in Google?

Microsoft stated it would be Windows NT 13, but so far I have not come across it in UA lists online.

[docs.microsoft.com...]

Thanks

Dimitri

9:52 pm on Feb 14, 2022 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



The version number is no longer part of the User Agent, ... instead you need to use the Client Hints protocol.

This is done by adding the "accept-ch" header, with the value "Sec-Ch-Ua-Platform,Sec-Ch-Ua-Platform-Version".

After that, the next requests from the client should include two headers named "Sec-Ch-Ua-Platform" and "Sec-Ch-Ua-Platform-Version".

This works only with Chromium based browsers.

Also, as you can guess it means that the initial request can't carry these extra headers. Only sub sequence ones should.

smallcompany

9:56 pm on Feb 14, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks.

But... when I type "my user agent" in Google, I get this:

For my iMac
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36

For my Windows 10 PC
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0

Therefore, I see an OS being reported as a part of the user agent.

Dimitri

10:08 pm on Feb 14, 2022 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



Yes, this is the expected user agents.

Chromium based web browsers, froze their user agent string, and, if I don't make mistake will always show Windows NT 10.0 for a while (even on Windows 11), and then, will switch to just Windows, without version number. (this is my understanding)

i don't know if Safari and Firefox are following this path.

edit: now, there might be legitimate reasons to analyse the user agent, however, you should start trying to find a way to avoid using this information. First of all, anyone can put anything in a user agent string. So it's becoming a source of information, which can't be trusted, and shouldn't be use anymore.

smallcompany

2:32 am on Feb 16, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks.

I only need this for my php script as I feature a tool that shows UA, OS, screen resolution and so on. If they lie, they lie themselves, lol.

All I wanted to check here was to get someone who has Windows 11 do that Google search and post back. My only PC is too old for the version 11.

Cheers

P.S.
Google returns full UA including OS in any browser.

P.S. 2
It looks like browser "froze" UA for windows to 10. Something to look into now is called Client Hints. I guess I'll need JavaScript for that.