Crawler-Detect icon indicating copy to clipboard operation
Crawler-Detect copied to clipboard

Chrome will stop using User-Agents

Open JayBizzle opened this issue 3 years ago • 2 comments

Need to look into this...

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

JayBizzle avatar Oct 21 '20 19:10 JayBizzle

Related

https://github.com/serbanghita/Mobile-Detect/issues/824

https://github.com/jenssegers/agent/issues/165

JayBizzle avatar Oct 21 '20 19:10 JayBizzle

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

SoranDK avatar Aug 21 '23 12:08 SoranDK