![]() |
Anyone got a trick to distinguish Chrome from other Chromium based browsers?
I want something to affect Google Chrome users only, and I've discovered that my current user agent detection method is inadequate.
Quote:
preg_match might be an option, however I think some browser extensions can make changes to the UA, which means matching for something like ...Safari/[0-9]+\.[0-9]+$ might not identify Chrome users with browser extensions. If the best I can do is manually identify other browsers and make exceptions for them one by one, that is an option, but I'd rather do this algorithmically if possible. It doesn't need to be perfect. Any ideas? |
Why bother? Official version have like 99% of traffic anyway.
|
There's a ton of traffic on Silk, Opera and others. Every Amazon Kindle uses the Silk browser.
|
Not 100% safe:
https://stackoverflow.com/questions/...ally-vs-chrome Dont know programming well enough to validate this for robustness https://social.msdn.microsoft.com/Fo...webdevelopment |
Found this answer on stackoverflow, don't know if it is 100% current or not.
https://stackoverflow.com/questions/...48618#13348618 Quote:
|
Thanks guys!
|
All times are GMT -7. The time now is 04:55 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123