We have previously introduced the collection of several mobile platform browsers, as well as the simple method to modify the User Agent in Chrome, but sometimes other browsers will be used to disguise the User Agent. Today, I sorted out the following common methods for modifying the User-agent disguise in browsers:
- Modify the User-agent and registry in IE
Location of the User-Agent in the Registry
Under [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ User-Agent \ Post Platform], create a new string value with left blank content, the name of the character you want to add to the User-Agent. The following uses "motorolarokre2" as an example. Modify the REG file corresponding to the Registry as follows:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ User-Agent \ Post Platform]
"Repeated larokre2" = ""
After modification, restart IE.
The user-agent value of IE. The following is a combination of the following addresses + some default values
HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ User-Agent \ Post Platform
HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ User-Agent \ Post Platform
HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ 5.0 \ User-Agent \ Post Platform
IE8 User-Agents:
IE8 on Windows Vista (compatible browsing)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0)
IE8 on Windows Vista
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)
IE8 on Windows 7
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)
64-bit IE on 64-bit Windows 7:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0)
32-bit IE on 64-bit Windows 7:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0)
- Modify User-agent in FireFox
Method 1:
- Enter "about: config" in the address bar and press enter to enter the settings menu.
- Find "general. useragent. override". If this item does not exist, right-click "new"-> "string" and enter this string.
- Set the value to the UserAgent you want.
Method 2:
Install the plug-in: User Agent Switcher
Method 1:
1. Choose Tools> Preferences> Content> Advenced In the toolbar and click Manage Site Preferences.
2. Click the "Add" button. In the displayed window, enter "*" in "Site" and select the browser ID in the "Network" tab. The options are as follows:
0 Default
1 Opera
2 Mozilla, Opera detectable
3 Internet Explorer, Opera detectable
4 Mozilla, Opera hidden
5 Internet Explorer, Opera hidden
Method 2:
1. Enter "opera: config" in the address bar and press enter to open it.
2. Click "User Agent" and set the desired value for "Spoof UserAgent ID" in it. The value range is 1-5. The corresponding ID is the same as above.
- Modify User-agent in Maxthon
Choose tools> roaming settings center> advanced options from the toolbar, select Custom UserAgent string, and enter your UserAgent. Save the settings and restart Maxthon.
- Chrome modifies User-agent
- Method 1: add the parameter-user-agent = "Your UserAgent" at startup"
- Method 2: Modify chrome. dll. Change the UserAgent string to your own.
There is also a more concise way to modify Chrome's User Agent, see here.
- Modify User-agent in Safari
- 1. Choose "Edit"> "Preferences"> "Advanced" from the menu bar, and select "Show Develop menu in menu bar ".
- 2. There will be an additional item "Develop" in the menu bar. You can set your UserAgent through the "User Agent" sub-menu.
- Modify User-agent on iPhone
Replace Mozilla/5.0 in the/System/Library/Frameworks/WebKit. framework/WebKit file with other UA. The characters must not exceed the length of "Mozilla/5.0.
Useful References
To forge a User-Agent, you must first know the User-anent of various browsers to forge a website that collects the User-anget of various browsers on various platforms, most browsers may have never heard of it.
Website User Agent String. Com home address http://www.useragentstring.com/
You can access the http://www.useragentstring.com/pages/useragentstring.php directly here
Page to view the various useragents they have collected.