Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome will stop using User-Agents #413

Open
JayBizzle opened this issue Oct 21, 2020 · 2 comments
Open

Chrome will stop using User-Agents #413

JayBizzle opened this issue Oct 21, 2020 · 2 comments

Comments

@JayBizzle
Copy link
Owner

Need to look into this...

https://web.dev/user-agent-client-hints/

@JayBizzle
Copy link
Owner Author

@SoranDK
Copy link

SoranDK commented Aug 21, 2023

Doesn't seem to have any effect on this script...

https://blog.chromium.org/2021/05/update-on-user-agent-string-reduction.html:

Our plan was designed with backwards compatibility in mind, and while any changes to the User Agent string need to be managed carefully, we expect minimal friction for developers as we roll this out (i.e., existing parsers should continue to operate as expected).

If your site, service, library or application relies on certain bits of information being present in the User Agent string such as Chrome minor version, OS version number, or Android device model, you will need to begin the migration to use the User Agent Client Hints API instead.

If you don’t require any of these, then no changes are required and things should continue to operate as they have to date.

In some ways Chrome is playing catch up on this front: Safari was the first to cap the macOS version number in the UA string and Firefox has followed suit. Firefox has also capped the Windows version number to 10.

So they are not stopping sending User-Agents... They are just more general in version numbering to make it less unique.

From:
Mozilla/5.0 (Linux; Android <androidVersion>; <deviceModel>) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<majorVersion>.<minorVersion> <deviceCompat> Safari/537.36

To:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<majorVersion>.0.0.0 <deviceCompat> Safari/537.36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants