How does PHP correctly determine the browser used by the customer to access?
ringa_lee2017-05-16 12:59:13
0
2
349
RT, but many browsers now use browsers from other companies, resulting in inaccurate judgment. For example, when I use QQ browser to visit, the records are from Google... Is there any accurate way to determine the browser used by the user to access?
The logo of QQ browser is QQ Browser. Like 360, I don’t know how to judge it at the moment
Use priority to judge
There are several types of the same UA.
Such as WeChat
MicroMessenger
webkit
iphone
When you judge, judge first
MicroMessenger
. If so, stop judging. Others can be deduced in this way