Recently, we need to differentiate China Mobile, China Unicom, and China Telecom, and sort out the differentiation methods.
1: differentiate by number segment
Connect: 130,131,132,155,156
China Telecom: 133,153,189
Mobile: 134,135,136,137,138,139,150,151,152,157,158,159,188
2: According to imsi:
Protected int getmobitype (string imsi)
{
VaR state = "";
If (! String. isnullorempty (imsi ))
State = imsi. substring (0, 5 );
Switch (state)
{
Case "46000": // move
Return 1;
Case "46007": // move
Return 1;
Case "46002": // move
Return 1;
Case "46001": // China Unicom
Return 2;
Case "46003": // China Telecom
Return 3;
Default: // unknown
Return 0;
}
}
3: WAP access, most of which are samples extracted from the cottage machine.
Agent
1
2Mozilla/5.0 (windows; U; Windows NT 6.1; en-US) applewebkit/532.5 (khtml, like gecko) Chrome/4.1.249.1064 Safari/532.5
3Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; wow64; Trident/4.0; slcc2 ;. net CLR 2.0.50727 ;. net CLR 3.5.30729 ;. net CLR 3.0.30729; Media Center PC 6.0; infopath.2)
4Opera/9.80 (Windows NT 5.1; U; ZH-CN) presto/2.5.24 version/10.53
5Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; wow64; Trident/4.0; 51logon.com; slcc2 ;. net CLR 2.0.50727 ;. net CLR 3.5.30729 ;. net CLR 3.0.30729, Media Center PC 6.0)
6Mozilla/5.0 (windows; U; Windows NT 5.1; en-US) applewebkit/533.4 (khtml, like gecko) Chrome/5.0.375.7 Safari/533.4
7Maui WAP browser
8Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; wow64; Trident/4.0; slcc2 ;. net CLR 2.0.50727 ;. net CLR 3.5.30729 ;. net CLR 3.0.30729; Media Center PC 6.0; infopath.2)
9Nokia7610/2.0 (5.0509.0) symbianos/7.0 s series60/2.1 profile/MIDP-2.0 configuration/CLDC-1.0
10Mozilla/5.0 (windows; U; Windows NT 6.1; en-US) applewebkit/533.4 (khtml, like gecko) Chrome/5.0.375.55 Safari/533.4
11NokiaN93-1/g00.041
12Maui_wap_browser
13Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; sv1;. Net CLR 1.1.4322;. Net CLR 2.0.50727;. Net CLR 3.0.20.6.2152;. Net CLR 3.5.30729)
14GIONEE-I9/sw1.0.0/WAP2.0
15Untrusted/1.0
16Mozilla/4.0.
17Maui_wap_browser, mywireless_wap
18NokiaN73-2/3.0-630.0.2 series60/3.0 profile/MIDP-2.0 configuration/CLDC-1.1
19Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; qqdownload 1.7; infopath.1)
20Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; sv1;. Net CLR 2.0.50727; Maxthon 2.0)
This is some samples collected.
Future backup