Common Methods for modifying User-Agent in browsers

Source: Internet
Author: User

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:

  1. Enter "about: config" in the address bar and press enter to enter the settings menu.
  2. Find "general. useragent. override". If this item does not exist, right-click "new"-> "string" and enter this string.
  3. Set the value to the UserAgent you want.

Method 2:

Install the plug-in: User Agent Switcher

  • Opera modify User-agent

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
  1. Method 1: add the parameter-user-agent = "Your UserAgent" at startup"
  2. 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. 1. Choose "Edit"> "Preferences"> "Advanced" from the menu bar, and select "Show Develop menu in menu bar ".
  2. 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.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

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.