The browser that spearheaded the popularity of the Web was Netscape Navigator 3.0,which was released around 1996. The code name of the Netscape engine was Mozilla, and the user-agent string had a very simple format:
Mozilla/AppVersion (Platform; Security [; OS-or-CPU-Description])
In order to fully understand exactly what is going on, take a look at an example from Netscape 6.2.1 running on Windows XP:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko/20011128
Netscape6/6.2.1
Matching up the various pieces of information:
❑ MozillaVersion is 5.0.
❑ Platform is Windows.
❑ Security is U.
❑ OS-or-CPU is Windows NT 5.1
❑ Localization information is en-US.
❑ PrereleaseVersion is rv:0.9.4.
❑ GeckoVersion is 20011128.
❑ ApplicationProduct is Netscape 6
❑ ApplicationProductVersion is 6.2.1.
The following table displays some common browsers and their user-agent strings
Browser
|
User-Agent String |
Internet Explorer 6.0 |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
(Windows XP) |
Mozilla 1.5 |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
(Windows XP) Gecko/20031007 |
Firefox 0.92 |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
(Windows XP) Gecko/20040707 Firefox/0.8 |
Opera 7.54 |
Opera/7.54 (Windows NT 5.1; U)
(Windows XP) |
Safari 1.25 |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en)
(MacOS X) Apple-WebKit/124 (KHTML, like Gecko) Safari/125.1 |
分享到:
相关推荐
public static void main(String[] args) { String str = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36"; System.out.println(str); try...
Http Header之User-Agent User-Agent中文名为用户代理,是Http协议中的一部分,属于头域的组成...然而有些时候我们需要把请求头里面的user-agent去掉; 客户端程序: private static final String BASE_URL = htt
If you need to parse more strings, you can re-use // this object and call: ua.Parse("another string") ua := user_agent . New ( "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) ...
本资源是博客《根据 User Agent String 判断客户端平台及浏览器的 Java 程序》的源代码。包含有 Java 版和 PHP 版两个版本的源程序。读者朋友可以拿下来分别阅读进行参考。
User-Agent实用程序-从用户代理标头中提取详细信息 通过NuGet安装 PM> Install-Package UAUtil 如何使用 string userAgent = " Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko " ; ...
用法示例const userAgent = require ( 'user-agent-parse' ) ;userAgent . parse ( 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8' ) ;// => ...
npm install get-user-agent 用法示例 const useragent = require ( 'get-user-agent' ) ; console . log ( useragent . firefox ( 75 ) ) ; 功能 ⇒ string Chrome用户代理 ⇒ string 具有高级选项的Chrome用户...
随着Android设备增多,不少网站都...标准判断规则:Mobile Android has “Mobile” string in the User-Agent header. Tablet Android does not. 在Android设备UA字符串中,移动设备包含Mobile字符串,而平板设备没有。
xslt-stylesheet agent="THE-USER-AGENT-STRING-OF-THE-BROWSER" href="URL-OF-YOUR-STYLESHEET"?> This now enables you to use different Stylesheets for different browsers. (For example Netscape & IE) ...
包ua.Parse(userAgent string)函数解析浏览器和bot的用户代理字符串和确定项: 用户代理名称和版本(Chrome,Firefox,Googlebot等) 操作系统名称和版本(Windows,Android,iOS等) 设备类型(移动设备,台式...
const userAgents = require ( 'top-user-agents' ) const uniqueRandomArray = require ( 'unique-random-array' ) console . log ( userAgents [ 0 ] ) // => Mozilla/5.0 (Windows NT 10.0; Win64; x64) Apple...
渗透测试笔记工具的最常用用法sqlmap sqlmap --url =“” -p用户名--user-agent = SQLMAP --random-agent --threads = 10 --risk = 3 --level = 5 --eta --dbms = MySQL --os = Linux --banner --is-dba --users --...
var mydevice = device ( 'put here user-agent string' ) ; if ( mydevice . is ( 'bot' ) ) // do something... else // do another thing... 通过这样做,您将获得具有以下属性的对象: 名称 栏位类型 描述 ...
user_ini.filename = ".user.ini" ; To disable this feature set this option to empty value ;user_ini.filename = ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds ...
UASparser.zip,用于http://user-agent-string.info/a高性能java用户代理解析器提供的数据库的用户代理解析器库
// User Agent string isbot ( 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +...
-A/--user-agent <string> 设置用户代理发送给服务器 - anyauth 可以使用“任何”身份验证方法 -b/--cookie <name=string/file> cookie字符串或文件读取位置 - basic 使用HTTP基本验证 -B/--use-ascii...
--random-agent Use random HTTP User-Agent header value --code=CODE Expected HTTP code in rejected responses --string=STRING Expected string in rejected responses --post Use POST body for sending ...
UA Detector 是一个用于分析 User-Agent 字符串的程序包,能识别出操作系统、设备品牌(主要针对移动设备)、浏览器核心以及浏览器。 在命令行界面中使用 通过 npm 全局安装: npm install uadetector -g 安装成功后...
Python用户代理 user_agents是一个Python库,它通过解析(浏览器/ HTTP)用户代理字符串,提供了一种简便的方法来识别/检测诸如手机,平板电脑之类的设备及其功能。...# iPhone's user agent string ua_string