关于移动,联通,电信的区分。
最近需要對移動,聯(lián)通,電信進(jìn)行區(qū)分,對區(qū)分方法做了下整理。
1:按號段進(jìn)行區(qū)分
聯(lián)通:130,131,132,155,156
電信:133,153,189
移動:134,135,136,137,138,139,150,151,152,157,158,159,188
2:按IMSI進(jìn)行區(qū)分:
protected int GetMobiType(string imsi)
?? ?{
?? ? ? ?var state = "";
?? ? ? ?if (!string.IsNullOrEmpty(imsi))
?? ? ? ? ? ?state = imsi.Substring(0, 5);
?? ? ? ?switch (state)
?? ? ? ?{
?? ? ? ? ? ?case "46000"://移動
?? ? ? ? ? ? ? ?return 1;
?? ? ? ? ? ?case "46007"://移動
?? ? ? ? ? ? ? ?return 1;
?? ? ? ? ? ?case "46002"://移動
?? ? ? ? ? ? ? ?return 1;
?? ? ? ? ? ?case "46001"://聯(lián)通
?? ? ? ? ? ? ? ?return 2;
?? ? ? ? ? ?case "46003"://電信
?? ? ? ? ? ? ? ?return 3;
?? ? ? ? ? ?default://未知
?? ? ? ? ? ? ? ?return 0;
?? ? ? ?}
?? ?}
3:wap訪問,大多是山寨機(jī)提取的樣本。
Agent
?1
2 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
3 Mozilla/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)
4 Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.5.24 Version/10.53
5 Mozilla/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)
6 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.7 Safari/533.4
7 MAUI WAP Browser
8 Mozilla/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)
9 Nokia7610/2.0 (5.0509.0) SymbianOS/7.0s Series60/2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0
10 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4
11 NokiaN93-1/20.0.041
12 MAUI_WAP_Browser
13 Mozilla/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.4506.2152; .NET CLR 3.5.30729)
14 GIONEE-I9/SW1.0.0/WAP2.0
15 UNTRUSTED/1.0
16 Mozilla/4.0
17 MAUI_WAP_Browser, MyWireless_WAP
18 NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
19 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQDownload 1.7; InfoPath.1)
20 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; MAXTHON 2.0)
?這是采集的一些樣本。?
以后備用?
轉(zhuǎn)載于:https://www.cnblogs.com/henq/archive/2010/06/01/1748988.html
總結(jié)
以上是生活随笔為你收集整理的关于移动,联通,电信的区分。的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [分享]多个选项卡切换效果
- 下一篇: 后缀树和后缀数组的一些资料收集