If Request.UserAgent.ToUpper.StartsWith("MOT") Or Request.UserAgent.ToUpper.StartsWith("MOT") Then ''''摩托罗拉 End If If Me.Request.UserAgent.ToUpper.IndexOf("-SGH") > 0 Then ''''三星 End If
判断型号的话方法同上。
这样处理也有一些例外,比如摩托罗拉E360 会识别成T33这个是厂商的问题了。。
常见手机User-Agent: Log_Brand Log_module Log_Ua Arima Arima 2860 Profile/MIDP-2.0 Configuration/CLDC-1.1 CECT A706 CECT A706 CECT E818 CECT-E818/(2004.07.01)SW2.0.0/WAP1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 CECT G3300 CECT G3300/UT_SAMMY_A_06.20/WAP1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 CECT M62 CECT-M62 CECT M72 CECT-M72 CECT S568 CECTs568/(2004.07.27)SW2.0.0/WAP1.2 CECT S857 CECT S857 CECT T586 CECTT586/(2004.11.30)1.0/WAP1.2.1 Profile CECT T700 CECT_T700 CECT T868 CECT T868 Compal C8600 Compal-C8600/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0 Compal CHASE898 Compal-CHASE898/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0 Compal COMPA Compal-Compa/1.4 Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0 Compal HZ8 Compal-HZ8/1.0 UP.Browser/6.2.2.7.c.1.101 (GUI) MMP/1.0 Compal I361 Compal- I361/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0 Compal I368 Compal- I368/1.0 UP.Browser/6.2.2.3 (GUI) MMP/1.0 Compal SEVILLE Compal-Seville/1.4 UP.Browser/5.0.3.2 (GUI) Compal TG762 Compal-TG762/1.0 UP.Browser/6.2.2.7 (GUI) MMP/1.0 Compal TG762D Compal-TG762D/1.0 UP.Browser/6.2.2.7.c.1.101 (GUI) MMP/1.0 Compal U8800 Compal-U8800/1.0 UP.Browser/6.2.2.7 (GUI) MMP/1.0 Compal U8800A Compal-U8800A/1.0 UP.Browser/6.2.2.7 (GUI) MMP/1.0 Compal U8810 Compal-U8810/1.0 UP.Browser/6.2.2.7.c.1.101 (GUI) MMP/1.0 Compal XG3C Compal-XG3C/1.0v UP.Browser/4.1.23c Compal XG5 Compal-XG5/1.0v UP.Browser/4.1.23c CTL 2.0 CONFIGURATION CTL/(2004.07.01)SW2.0.0/WAP1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 CTL ROCKET CTL-ROCKET/1.0/WAP1.2 Profile/MIDP-1.0 Configuration/CLDC-1.1 LG B2050 LG-B2050 MIC/WAP2.0 MIDP-2.0/CLDC-1.0 LG C1100 LG-C1100 MIC/WAP2.0 MIDP-2.0/CLDC-1.0 LG CU8080 LGE-CU8080/1.0 UP.Browser/4.1.26l LG G1800 LG-G1800 MIC/WAP2.0 MIDP-2.0/CLDC-1.0 LG G210 LG-G210/SW100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G220 LG-G220/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G232 LG-G232/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G262 LG-G262/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G5200 LG-G5200 AU/4.10 LG G5600 LG-G5600 MIC/WAP2.0 MIDP-2.0/CLDC-1.0 LG G610 LG-G610 V100 AU/4.10 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G622 LG-G622/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G650 LG-G650 V100 AU/4.10 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G660 LG-G660/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G672 LG-G672/V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G682 LG-G682 /V100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G688 LG-G688 MIC/V100/WAP2.0 MIDP-2.0/CLDC-1.0 LG G7000 LG-G7000 AU/4.10 LG G7050 LG-G7050 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G7100 LG-G7100 AU/4.10 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G7200 LG-G7200 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G822 LG-G822/SW100/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 LG G850 LG-G850 V100 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G920 LG-G920/V122/WAP2.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG G922 LG-G922 Obigo/WAP2.0 MIDP-2.0/CLDC-1.1 LG G932 LG-G932 UP.Browser/6.2.3(GUI)MMP/1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 LG L1100 LG-L1100 UP.Browser/6.2.2 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG T5100 LG-T5100 UP.Browser/6.2.3 (GUI) MMP/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 LG U8120 LG/U8120/v1.0 LG U8130 LG/U8130/v1.0 LG U8138 LG/U8138/v2.0 LG U8180 LG/U8180/v1.0 NEC DB7000 NEC-DB7000/1.0 UP.Browser/4.1.23c NEC E232 NEC-E232/1.0 UP.Browser/6.2.2.4.d.1.102 (GUI) MMP/1.0 NEC N100 NEC-N100/0100/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0 NEC N108 NEC-N108/0100/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0 NEC N109 NEC-N109/0100/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0 NEC N110 NEC-N110/0730MAWC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.1.0.7.8 (GUI) MMP/1.0 NEC N1101 NEC-N1101/(2005.02.18)1.0/WAP1.2.1 Profile NEC N118 NEC-N118/1101MAWC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.1.0.7.8 (GUI) MMP/1.0 NEC N150 NEC-N150/(2004.12.1)SW3.0.0/WAP2.0 NEC N158 NEC-N158/(2004.12.30)SW4.0.0/WAP2.0 NEC N166 NEC-N166/(2005.2.21)0100/WAP1.2.1 Profile NEC N170 NEC-N170/(2005.2.1)SW3.0.0/WAP2.0 NEC N190 NEC-N190/REV 2.2.2/WAP1.2.1 Profile NEC N200 NEC-N200/REV 2.2.2/WAP1.2.1 Profile NEC N500 NEC-N500/REV 2.2.1/WAP1.2.1 Profile NEC N600 NEC-N600/1.0 HopenOS/2.0 NEC N610 NEC-N610/1.0 NEC N620 NEC-N620/1.0 HopenOS/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 NEC N700 NEC-N700/1.0 UP.Browser/6.2.2.4.d.1.102 (GUI) MMP/1.0 NEC N710 NEC-N710/1.0 UP.Browser/6.2.2.6.e.1.101 (GUI) MMP/1.0 NEC N718 NEC-N718/1.0 UP.Browser/6.2.2.6.e.1.101 (GUI) MMP/1.0 NEC N720 NEC-N720/2004AJCC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.2.3.2.g.1.106 (GUI) MM NEC N728 NEC-N728/2004AJCC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.2.3.2.g.1.106 (GUI) MM NEC N730 NEC-N730/(2004.12.27)1.0/WAP1.2.1 Profile NEC N738 NEC-N738/(2004.12.27)1.0/WAP1.2.1 Profile NEC N8 NEC-N8/1.0 UP.Browser/6.1.0.5 (GUI) MMP/1.0 NEC N800 NEC-N800/1.0 (4.74) Profile/MIDP-2.0 Configuration/CLDC-1.1 NEC N810 NEC-N810/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Browser/6.1.0.6.1.f.2 (GUI) MMP/1.0 NEC N820 NEC-N820/1.0 Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Browser/6.2.2.6.e.1.101 (GUI) MMP/1.0 NEC N830 NEC-N830/1.0 UP.Browser/6.2.2.6.e.1.101 (GUI) MMP/1.0 NEC N840 NEC-N840/(2004.12.20)DJCC/WAP2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0 UP.Browser/6.2.3.2.g.1.108 NEC N900 NEC-N900/1.0 UP.Browser/6.2.2.6.e.1.101 (GUI) MMP/1.0 NEC N910 NEC-N910/1.0 NEC N917 NEC-N917/REV 2.2.1/WAP1.2.1 Profile NEC N919 NEC-N919/REV 2.2.1/WAP1.2.1 Profile NEC N920 NEC-N920/(2004.11.15)1.0/WAP1.2.1 Profile NEC N930 NEC-N930/(2004.01.05)SW2.60/WAP1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0 NEC N940 NEC-N940/(2005.01.07)SW1.40/WAP1.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0 TCL 3188C TCL-3188C TCL 3199 TCL-3199 TCL 718 TCL-718 TCL 728 TCL-728 TCL 758 TCL-758/SW-08.03.01/WAP-1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0 TCL 766 TCL-766/W05.12/WAP-1.2.1 TCL 782 TCL-782/W05.12/WAP-1.2.1 TCL 818 TCL-818 TCL E737 TCL-e737/401/WAP-2.0/MIDP-1.0/CLDC-1.0 TCL E767 TCL-E767/OC02-1-1.58-0618/WWW/MIDP-1.0 Configuration/CLDC-1.0 TCL I919 TCL-i919 TCL I939 TCL-i939 TCL MOBO808 TCLMobo808 TCL MOBO858 TCL-MOBO858/340/wap 2.0/MIDP 1.0/CLDC 1.0 TCL MOBO896 TCL-MOBO896/383/WAP-2.0/MIDP-1.0/CLDC-1.0 TCL MOBO898 TCL-MOBO898/361/WAP-2.0/MIDP-1.0/CLDC-1.0 TCL MOBO899 TCL-MOBO899/391/WAP-2.0/MIDP-1.0/CLDC-1.0 TCL Q550 TCL-Q550 TCL U106 TCL-U106/SW-16.03.01/WAP-1.2.1 Profile/MIDP-1.0 Configuration/CLDC-1.0 TCL U2 TCL U2 TCL U8 TCL-U8 TDG 9920 TDG-9920 阿尔卡特 BG3 Alcatel-BG3/1.0 UP.Browser/5.0.3.3.11 阿尔卡特 BG3-color Alcatel-BG3-color/1.0 UP.Browser/5.0.3.3.11 阿尔卡特 BH4 Alcatel-BH4/1.0 UP.Browser/6.2.ALCATEL MMP/1.0 阿尔卡特 BH4R Alcatel-BH4R/1.0 UP.Browser/6.2.ALCATEL MMP/1.0 阿尔卡特 CTH3 Alcatel-