![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 | |
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 7,762
|
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?
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Why bother? Official version have like 99% of traffic anyway.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 7,762
|
There's a ton of traffic on Silk, Opera and others. Every Amazon Kindle uses the Silk browser.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Bye - Left to do stuff
Industry Role:
Join Date: Feb 2013
Posts: 4,108
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,111
|
Found this answer on stackoverflow, don't know if it is 100% current or not.
https://stackoverflow.com/questions/...48618#13348618 Quote:
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 7,762
|
Thanks guys!
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
|||||||
|
|||||||
Bookmarks |