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 2.0.0.20 – Mac
    Mozilla Firefox 2.0.0.20 – Windows

    Opera 10.0 – Mac
    Opera 10.0 – Windows