roughly as follows:Copy codeThe Code is as follows:Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070309 Firefox/2.0.0.3Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070803 Firefox/1.5.0.12The version number is a number after Firefox.OperaOpera provides a special browser flag, that is, t
", including "windows nt", "gecko/", and "firefox /";
Method of determination: you can retrieve only the "firefox/" and "windows nt" strings, and strictly search for "mozilla/", "windows nt ", four strings: "gecko/" and "firefox;
Windows Chrome:
Features: starting with "mozilla/x.0", including "windows nt", "chrome/", and "applewebkit/", "safari /";
Method of determination: you can retrieve only the "window
In the past, I always thought that using the user proxy string to check the browser is that type. This is really a big mistake, next, let's talk about how to determine the device type used by the current browser through js. How can we detect the browser rendering engine, platform, Windows operating system, mobile devices, and game systems that access the webpage?
/*** Author: laixiangran. * Created by laixiangran on 2015/12/02. * detects browser rendering engines, platforms, Windows operating
The so-called "browser kernel" is nothing more than a core part of the browser-"Rendering engine", the term literal translation is called "rendering engine", but we often call it "typesetting engine", "Interpretation engine". The purpose of this engine is to help the browser render the content of the Web page, converting the page content and layout code to the view that the user sees.Note: Sometimes what we call the "browser kernel" or even "rendering engine", in addition to the rendering engine
test."Bytemobile", // It seems to be a solution provided to the mobile Internet to improve network operation efficiency, for example: Via = 1.1 Bytemobile OSN WebProxy/5.1};/** User-Agent keywords such as IE or Firefox on the computer */Private static String [] pcHeaders = new String [] {"Windows 98 ","Windows ME ","Windows 2000 ","Windows XP ","Windows NT ","Ubuntu"};/** Keywords in the User-Agent of the mobile browser */Pri
string at the GET address to guess.
GET /sessionid=a HTTP/1.1Host: bank.comUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0Cookie: sessionid=d3b0c44298fc1c149afbf4c8996fb924GET /sessionid=a HTTP/1.1Host: bank.comUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0)Gecko/20100101 Firefox/16.0Cookie: sessionid=d3b0c44298fc1c149afbf4c8996fb924
For example, the Response l
IT orange multi-site SQL injection 4 (involving a large number of databases)
[HD] building network security with personal glory in the name of a team
1.Data Packets:
GET /investevents?scope=1similar_money=2sub_scope=75 HTTP/1.1Cookie: cisession=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%2218155777735a8bba07cf79b317c7c235%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A14%3A%22218.205.17.171%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A107%3A%22Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%29+AppleWebKit%2F537.21+
getboundingclientrect function ). This is exclusive to Firefox. It can be determined that the current browser is Firefox. The useragent versions of Firefox are roughly as follows:
Mozilla/5.0 (windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1Mozilla/5.0 (windows; U; Windows NT 5.1) Gecko/20070309 Firefox/2.0.0.3Mozilla/5.0 (windows; U; Windows NT 5.1) Gecko
have a getBoxObjectFor function to obtain the location and size of the DOM element (IE corresponds to the getBoundingClientRect function ). This is exclusive to Firefox. It can be determined that the current browser is Firefox. The userAgent versions of Firefox are roughly as follows:Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/200703
(compatible; MSIE 7.0; Windows NT 5.2)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)
The version number is a number after MSIE.
Firefox
All DOM elements in Firefox have a getBoxObjectFor function to obtain the location and size of the DOM element (IE corresponds to the getBoundingClientRect function ). This is exclusive to Firefox. It can be determined that the current browser is Firefox. The userAgent versions of Firefox are roughly as follows:
Rendering Engine
The rendering engine is responsible ...... Rendering, that is, display the request content on the browser screen.
By default, the rendering engine can display HTML, XML documents, and images. You can use the plug-in (browser extension) to display other types of documents. For example, use the PDF viewer plug-in to display PDF files. We will discuss plug-ins and extensions in a special chapter. In this section, we will focus on the main purpose of the rendering engine-displaying
example: Via = 1.1 Bytemobile OSN WebProxy/5.1};/** User-Agent keywords such as IE or Firefox on the computer */Private static String [] pcHeaders = new String [] {"Windows 98 ","Windows ME ","Windows 2000 ","Windows XP ","Windows NT ","Ubuntu"};/** Keywords in the User-Agent of the mobile browser */Private static String [] mobileUserAgents = new String [] {"Nokia", // Nokia, which is also written on a stockade machine, is still a mobile phone, Mozilla/5.0 (Nokia5800 XpressMusic) UC AppleWebkit
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.