修改浏览器User Agent

利用伪装的user-agent 来模拟手机访问,获得不同系统不同浏览器的请求结果。

便捷有效的(懒人)方法->【Chrome浏览器】


1.打开浏览器 ,按F12进入开发者模式。找到【network conditions】:

修改浏览器User Agent_第1张图片

2.好像在图1.说完了。。。


最后附一些user agent

  • IOS UC
    Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/15B202 UCBrowser/11.7.7.1031 Mobile AliApp(TUnionSDK/0.1.20)
  • IOS 百度
    Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) BaiduBoxApp/10.0.6 iPhone; CPU iPhone OS 11_1_2 like Mac OS X Mobile/15B202 Safari/602.1 baiduboxapp/10.0.6.11 (Baidu; P2 11.1.2)
  • IOS QQ
    Mozilla/5.0 (iPhone1 02; CPU iPhone OS 11_1 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 MQQBrowser/8.0.1 Mobile/15B87 Safari/8536.25 MttCustomUA/2 QBWebViewType/1 WKType/1
  • IOS safari
    Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202 Safari/604.1
  • Android UC
    Mozilla/5.0 (Linux; U; Android 7.0; zh-CN; SM-C7000 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.8.0.960 Mobile Safari/537.36
  • Android QQ
    Mozilla/5.0 (Linux; U; Android 7.0; en-us; SM-C7000 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.0 Mobile Safari/537.36
  • Android 百度
    Mozilla/5.0 (Linux; Android 7.0; SM-C7000 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.116 Mobile Safari/537.36 T7/9.1 baidubrowser/7.16.12.0 (Baidu; P1 7.0)
    -小米
    Mozilla/5.0 (Linux; U; Android 6.0.1; zh-cn; MI NOTE LTE Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.146 Mobile Safari/537.36 XiaoMi/MiuiBrowser/8.8.7
    -OPPO
    Mozilla/5.0 (Linux; U; Android 5.1; zh-cn; OPPO R9m Build/LMY47I) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.134 Mobile Safari/537.36 OppoBrowser/4.5.2

你可能感兴趣的:(web)