admin 管理员组

文章数量: 887019

文章目录

  • userAgent 检测
  • PC/Mobile 浏览器 userAgent 大全
  • Mobile APP userAgent 大全
    • JS 判断当前 APP

userAgent 检测

  • https://useragent.buyaocha/

PC/Mobile 浏览器 userAgent 大全

系统浏览器User-Agent字符串
MacChromeMozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
MacFirefoxMozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:65.0) Gecko/20100101 Firefox/65.0
MacSafariMozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
WindowsChromeMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
WindowsEdgeMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763
WindowsIEMozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
iOSSafariMozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
iOSChromeMozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/126.0.6478.108 Mobile/15E148 Safari/604.1
iOSUC浏览器Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X; zh-CN) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/21F90 UCBrowser/16.5.9.2353 Mobile AliApp(TUnionSDK/0.1.20.4)
iOS跨克浏览器Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X; zh-cn) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/21F90 Quark/7.0.1.2158 Mobile
AndroidChromeMozilla/5.0 (Linux; Android 4.2.1; M040 Build/JOP40D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.59 Mobile Safari/537.36
AndroidWebkitMozilla/5.0 (Linux; U; Android 4.4.4; zh-cn; M351 Build/KTU84P) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

Mobile APP userAgent 大全

系统APPUser-Agent字符串
iOSCSDNMozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 CSDNApp/6.3.8(iOS)
iOS知乎Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 osee2unifiedRelease/19106 osee2unifiedReleaseVersion/10.11.0 ZhihuHybrid
iOS钉钉Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/21F90 AliApp(DingTalk/7.5.35) com.laiwang.DingTalk/37648190 Channel/201200 language/zh-Hans-CN UT4Aplus/0.0.6 WK
iOSQQMozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 QQ/9.0.65.617 V1_IPH_SQ_9.0.65_1_APP_A Pixel/828 MiniAppEnable SimpleUISwitch/0 StudyMode/0 CurrentMode/0 CurrentFontScale/1.000000 QQTheme/2105 AppId/537224259 Core/WKWebView Device/Apple(iPhone 11) NetType/WIFI QBWebViewType/1 WKType/1
iOS微信Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.49(0x18003137) NetType/WIFI Language/zh_CN
iOS支付宝Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/21F90 ChannelId(14) Ariver/1.1.0 AliApp(AP/10.6.6.6000) Nebula WK RVKType(1) AlipayDefined(nt:WIFI,ws:414
iOS掘金Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148/JueJinAPP
iOSSafariMozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
iOSChromeMozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/126.0.6478.108 Mobile/15E148 Safari/604.1
iOSUC浏览器Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X; zh-CN) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/21F90 UCBrowser/16.5.9.2353 Mobile AliApp(TUnionSDK/0.1.20.4)
iOS跨克浏览器Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X; zh-cn) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/21F90 Quark/7.0.1.2158 Mobile

JS 判断当前 APP

function extractAppName(userAgentString) {
    var appName = "Unknown";

    if (userAgentString.includes("CSDNApp")) {
        appName = "CSDN";
    } else if (userAgentString.includes("osee2unifiedRelease")) {
        appName = "知乎";
    } else if (userAgentString.includes("AliApp(DingTalk")) {
        appName = "钉钉";
    } else if (userAgentString.includes("QQ/")) {
        appName = "QQ";
    } else if (userAgentString.includes("MicroMessenger/")) {
        appName = "微信";
    } else if (userAgentString.includes("AliApp(AP/")) {
        appName = "支付宝";
    } else if (userAgentString.includes("JueJinAPP")) {
        appName = "掘金";
    } else if (userAgentString.includes("Safari/") && !userAgentString.includes("CriOS")) {
        appName = "Safari";
    } else if (userAgentString.includes("CriOS/")) {
        appName = "Chrome";
    } else if (userAgentString.includes("UCBrowser/")) {
        appName = "UC浏览器";
    } else if (userAgentString.includes("Quark/")) {
        appName = "跨克浏览器";
    }
    
    return appName;
}

console.log(extractAppName("Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 CSDNApp/6.3.8(iOS)"));

本文标签: 浏览器 大全 App useragent JS