This URL is a variety of languages to judge whether it is a mobile device
http://detectmobilebrowsers.com/
Example: C # determines if it is
protected void Page_Load (object sender, EventArgs e) {string[] mobileagents = {"iphone", "ipad", "MIDP", "UCWeb "," rv:1.2.3.4 "," Android ", "Phone", "mobile", "WAP", "NetFront", "Java", "Opera Mobi", "Opera Mini", "UCWeb", "Windows CE", "Symbian", "Series", "webOS", "Sony", "BlackBerry", "Dopod", "Nokia", "Samsung", "PalmSource", "Xda", "Pieplus", "Meizu", "MIDP", "CLDC", "Motorola", "Foma", "DoCoMo", "Up.browser", "Up.link", "Blazer", "Helio", "Hosin", "Huawei", "Novarra", "Coolpad", "webOS", "TechFaith", "PalmSource", "Alcatel", "Amoi", "Ktouch", "Nexian", "Ericsson", "Philips", "Sagem", "Wellcom", "Bunjalloo", "Maui", "Smartphone", "Iemobile", "Spice", "Bird", "zte-", "Longcos", "Pantech", "GioNee "," portalmmm "," Jig Browser ", "Hiptop", "BenQ", "H Aier "," ^LCT "," 320x320 ", "240x320", "176x220", "the" "acs-", "Alav", "Alca", "Amoi", "Audi", "Avan", "BenQ", "Bird", "Blac", "Blaz", "Brew", "Cell", "CLDC", "cmd- "," Dang "," doco ", "Eric", "Hipt", "Inno", "iPAQ", "Java", "Jigs", "Kddi", "Keji", "Leno", "Lg-c", "lg-d", "Lg-g", "lge-", "Maui", "Maxo", "MIDP", "MITs", "Mmef", "Mobi", "Mo T "," Moto "," MWBP ", "nec-", "Newt", "Noki", "Oper", "palm", "Pana" , "Pant", "Phil", "Play", "Port", "ProX", "Qwap", "Sage", "Sams", "Sany", "sch-", "Sec-", "Send", "Seri", "SGH -"," Shar "," sie-", "Siem", "Smal", "Smar", "Sony", "sph-", "SYMB", "T-mo", "Teli", "tim-", "Tosh", "tsm-", "Upg1", "Upsi", "vk-v "," Voda "," wap-", "Wapa", "Wapi", "Wapp", "Wapr", "Webc", "WINW", "Winw", "XDA", "xda-", "Googlebot-mobile"}; if (Request.UserAgent.ToString (). ToLower () = null) {for (int i = 0; i < mobileagents.length; i++) { if (Request.UserAgent.ToString (). ToLower (). IndexOf (Mobileagents[i]) > 0) {response.redirect ("http://m.meten.com/"); Break } } } }
If you need another language, go to the URL provided above
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Various languages to determine whether it is a mobile device