BugBuster1701 / contao-visitors-bundle

Contao 4/5 Visitors Bundle
GNU Lesser General Public License v3.0
2 stars 2 forks source link

Browser Erkennung für Windows 11 #138

Closed BugBuster1701 closed 10 months ago

BugBuster1701 commented 11 months ago

"Mozilla/6.4 (Windows NT 11.1) Gecko/2010102 Firefox/99.0"

https://developers.whatismybrowser.com/learn/browser-detection/user-agents/detect-windows-11-user-agent

Problem:

 test user agent and when someone opens my website with windows 11 I will get this

"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"

So technically this says it's windows 10, not 11.

Detect Windows 11 and CPU architecture using User-Agent Client Hints

https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11

BugBuster1701 commented 10 months ago

https://publishing-project.rivendellweb.net/client-hints-what-they-are-how-do-they-work-why-do-we-need-them/

https://github.com/matomo-org/device-detector/blob/master/ClientHints.php https://github.com/matomo-org/matomo/pull/18843/files

BugBuster1701 commented 10 months ago

grafik

BugBuster1701 commented 10 months ago

Testen mit:

Sec-CH-UA: "Examplary Browser"; v="73", ";Not?A.Brand"; v="27"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Platform-Version: "14.0.0"
BugBuster1701 commented 10 months ago

<meta http-equiv="Accept-CH" content="Sec-CH-UA-Full-Version, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version, Sec-CH-UA-Model, Sec-CH-UA-Arc">

Als Alternative, wenn das mit dem Header Add nicht funktioniert

"meta" Eintrag wird völlig ignoriert :-(

BugBuster1701 commented 10 months ago

https://user-agent-client-hints.glitch.me/headers

BugBuster1701 commented 10 months ago

https://ourcodeworld.com/articles/read/1466/how-to-add-custom-headers-to-every-single-response-globally-in-symfony-5

https://lindevs.com/add-custom-header-to-every-response-in-symfony 6

BugBuster1701 commented 10 months ago

https://www.chromium.org/updates/ua-reduction/#reduced-user-agent-string-reference

BugBuster1701 commented 10 months ago

https://wicg.github.io/ua-client-hints/#http-ua-hints

BugBuster1701 commented 10 months ago

https://packagist.org/packages/acsiomatic/device-detector-bundle

BugBuster1701 commented 10 months ago

See: https://github.com/BugBuster1701/contao-clienthints-request-bundle

BugBuster1701 commented 10 months ago

HTTP:

HTTPS: