How to judge the iphone version of the UC browser in PHP?
The following can be judged, but there is a problem, the iOS version of the UC browser has a fast mode, switch to the speed mode can not be judged. Now you want to make a separate decision to jump under UC browser.
$userAgent = $_server[' http_user_agent ');
if (Strpos ($userAgent, "IPhone") | | strpos ($userAgent, "IPad") | | strpos ($userAgent, "IPod")) {
Header ("location:http://www.baidu.com");
}else if (Strpos ($userAgent, "Android")) {
Header ("location:http://www.google.com");
}
------Solution--------------------
echo $_server[' http_user_agent '];
Post the results
------Solution--------------------
such as moderator, enter the results. Try to find the IUC character
------Solution--------------------
I miss the question ... A few years ago, I was thinking about something like you.
Judging the iphone version of UC ... Probably means to do the software station or advertising page and so on ...
Whether it's UC or safari ... To get UA is not hundred percent can be intercepted.
I can't recall it now, but there are a couple of ideas that might help you.
1. Some versions of the UC browser in the first visit and the second access to the IP is generally considered to be a problem with the browser settings, UC generally by default on the software settings in the transit or web compression, and so on. There is no problem with Safari or other phones with their own browser. You can use jump (not page 301), is a delay jump in JS or a deferred hop in WML. You can get to a different IP. You can do your own experiment.
Most 2.UC browsers turn on proxy settings by default. The speed pattern you're talking about is also similar to an agent. IP inconsistencies in the IP and phone cmwap or cmnet or Wi-Fi link (available with a browser for comparison), mostly in regions such as Guangdong or Beijing, Remember that the previous inference is the IP of the UC transit server. You can make a data sheet to record these IP, if accessed through these IP, basically can be judged as a UC browser
3. The accuracy of the UA is very low, and if the accuracy of the development requirements are high, then the logic is not too simple to write. It's not just UA. Also available through http_x_network_info,http_x_up_calling_line_id, Deviceid,http_x_up_subno,http_via, wait.
Hope to be of help to you.
------Solution--------------------
The UC has an acting seem.