User Agent各参数解释

By | November 22, 2020

以下是几个常见的User Agent
[cc lang=”text”]Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36 Edg/86.0.622.63
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36 OPR/72.0.3815.320
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:82.0) Gecko/20100101 Firefox/82.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15[/cc]

Mozilla/5.0 表示 Mozilla版本, MozillaProductSlice。声称是基于Mozilla的UA,仅适用于Firefox和Netscape等Gecko浏览器。对于所有其他UA,这意味着“与Mozilla兼容”。在现代浏览器中,仅出于历史原因使用此功能。它不再具有真正的意义, 比如 IE 8 不同是 ‘Mozilla/4.0’;

括号里Windows NT 10.0 / Macintosh / Linux 当指操作系统

Windows:
Windows NT 10.0 ==> windows 10;
Windows NT 6.3 ==> windows 8.1;
Windows NT 6.2 ==> windows 8;
Windows NT 6.1 ==> windows 7;
Windows NT 6.0 ==> windows vista;
Windows NT 5.2 ==> windows 2003;
详细查看 https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions

Leave a Reply

Your email address will not be published.