Most web browser does not have capability to allow user to change the user-agent string directly without the help of add-on, extension or plug-in, with the notably exception of Apple Safari web browser. User-agent string is transmitted to web server to make known the browser’s application type, operating system, software vendor, or software revision.

Internet users may want to alter or change the user-agent string that been submitted to the remote server for various reasons. For example, some web pages or web apps only support and allow specific type of web browsers, specifically IE and Firefox. Some web services have a pay wall where visitors must pay or subscribe in order to view the content, but by faking and spoofing as search engine spider or crawlers, the content is accessible for free. Besides, some websites serve different contents to different type of devices, making changing of user-agent necessary (such as emulate iPhone in Safari desktop browser) to access content pages targeted to specific browser.

In order to fake and spoof user-agent string in Safari in Windows or Mac OS X, follow these steps:

  1. In Safari, click on Edit on menu bar, and go to Preferences.

    Tip: If menu bar is hidden, press Alt key to reveal and show the menu bar.

  2. Go to Advanced tab.
  3. Select and check the checkbox for Show Develop menu in menu bar option.

    Enable Develop Menu in Safari

  4. Close the Preferences dialog window, and a new “Develop” menu will show in the menu bar.
  5. Click on Develop on menu bar, and then select User Agent in the pull down menu. A list of commonly used user agents are listed. Select any of them if available, or else click on Other to enter custom defined user agent string to use in Safari.

    Change and Spoof Safari User Agent String

    List of predefined user-agents in Safari include:

    Safari 4.0.4 – Windows
    Safari 4.0.4 – Mac
    Safari 3.2.3 – Windows
    Safari 3.2.3 – Mac

    Mobile Safari 3.1.2 – iPhone
    Mobile Safari 3.1.2 – iPod touch
    Mobile Safari 2.2.1 – iPhone
    Mobile Safari 2.2.1 – iPod touch

    Internet Explorer 8.0
    Internet Explorer 7.0
    Internet Explorer 6.0

    Mozilla Firefox 3.5.3 – Mac
    Mozilla Firefox 3.5.3 – Windows
    Mozilla Firefox 3.0.14 – Mac
    Mozilla Firefox 3.0.14 – Windows
    Mozilla Firefox – Mac
    Mozilla Firefox – Windows

    Opera 10.0 – Mac
    Opera 10.0 – Windows

Related Posts

  • jeet

    thanks sir

  • Josh

    Thanks for the tip! It actually worked for the site I needed to use which required IE for no apparent reason! I almost went as far as using bootcamp. Even tried a VM but the free VM IE testing codes were only supported by an older OS X. This was a simple solution that only took a minute and I was on my way!

  • Pingback: ASP.NET MVC 4, Browser-Specific Views « Pen#()

  • Dan Dar3

    IE9 – F12 development tools > Tools > Change User String allows you the same.

  • Willij

    How do I get back to the regular Safari browser again? The same way?

  • Pingback: GoGo Internet on p.s. Flights (Prices, Codes, Experiences, etc.) - Page 10 - FlyerTalk Forums()

  • Michiel

    How can I make the required changes on an iPad?

  • Bradley

    This is a very useful process. And the shortcut 'Alt' key also to view Menu Bar. Thanks a lot. I want one another help that is how can i change default accept type of safari browser? Please reply on my Email ID..

  • likeer

    I am sure down the line things mang changeThank you for sharing your response, and offering some solutions.

  • rekam

    Lol nice try but lies about other browsers plus safari sux ^^ firefox has this feature since day 1…

    type in "about:config" press enter and edit your useragent string, you can even make up a fake browser!