适用于Android 5.0及更高版本的WebView的用户代理中是否必须带有“; wv”?

Google Chrome浏览器的文档说:https://developer.chrome.com/multidevice/user-agent#webview_user_agent

WebView UA in Lollipop and Above

In the newer versions of WebView,you can differentiate the WebView by looking for the WV field as highlighted below.

Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML,like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36

这是否意味着,如果Android 5+ WebView的UA没有“ WV”,那么它实际上是一个机器人吗?像这样一个:

Mozilla/5.0 (Linux; Android 6.0; itel A21 Build/MRA58K) AppleWebKit/537.36 (KHTML,like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36

我可以通过这样的规则检测网络爬虫程序机器人吗?

wuweixiong1 回答:适用于Android 5.0及更高版本的WebView的用户代理中是否必须带有“; wv”?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3076220.html

大家都在问