Apr 02

Changing internet explorer user agent string

Posted by James Netherton | Monday 02 April 2007 7:42 PM | In Windows

There are many reasons why you may want to change the default user agent string that Internet Explorer uses to identify itself. You can override the default user agent string by applying some modifications to the following Windows registry keys.

Start regedit and navigate through the tree to the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent

You may not have the User Agent key so create this as a child to the 5.0 key. Now create the following string values:

  • Compatible = Not compatible
  • Version = MyBrowser 1.0
  • Platform = Windows 2003
  • Default = Mozilla/5.0
This would change the following IE 7.0 user agent string:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;)

To:

Mozilla/5.0 (Not compatible; MyBrowser 1.0; Windows 2003;)

You'll need to close any open instances of IE and restart the browser before the settings take effect.

 

4 Comments

[Post comment]


1

Posted by Stephen Allport | Tuesday 10 April 2007 4:24 PM

Of course your nasty support department could force these setting on you with a group policy object. Why is a good question but it's been done...


2

Posted by James Netherton | Tuesday 10 April 2007 5:26 PM

Good point!

In fact IIRC, the last place I worked branded IE with all of the company logos etc, and also had the company name in the user agent string. Not sure why you'd want to broadcast your identity to everyone...


3

Posted by Tim | Tuesday 12 February 2008 8:42 AM

You can use http://www.browserobject.com/useragent.aspx to get the right User Agent string to modify for server detection.


4

Posted by Sunny Shah | Saturday 03 May 2008 1:38 AM

Im creating a software for hiding browser. Thanks for the posts it might help me. I working on GPRS hacking. and this gonna help you . you would never understand how but Thank you so much again.

Leave a comment








Captcha text