How to Prevent Redirects in Safari

Posted Jun 16, 2015 by  /  Comments  /  Back to Blog

How to Prevent Redirects in SafariYou click a link while browsing the Web in Safari and, all of the sudden, the App Store pops up displaying what seems to be a random app. What happened? Clicking on the wrong spot can cause a redirect, which is preventable in Safari for iOS 8 for iPhone, iPad and iPod Touch as well as Safari for OS X Yosemite for Mac.

Prevent Safari Redirects in iOS 8

Update to Latest iOS

Preventing redirects in iOS is as simple as updating to the latest iOS version.

Step 1: Check if There Is an Available Update

Checking for an iOS update

Go to the Settings application and select General and then Software Update.

Step 2: Download and Install the Update

Install iOS Update

If there is an update available, click Install Now to download and install it. IOS 8 includes security fixes meant to disable redirects from occurring in Safari.

Check Safari Settings

Change Safari settings to prevent redirects. 

Step 1: Block Pop-Ups and Disable Website Tracking

block pop-ups in iOS

Open Settings, scroll down and select Safari. Within the General section, make sure the Block Pop-ups option is toggled on. Under Privacy & Security, enable the Do Not Track and Fraudulent Website Warning options.

Step 2: Block Cookies

blocking cookies in iOS

Click the Block Cookies option within Safari settings. Set the option to either Always Block or Allow from Websites I Visit, which may prevent redirects as you browse the Web.

Note: Blocking cookies may affect certain websites' functionality. Cookies are used to save login info and customization options as well as power features such as an e-commerce site's product suggestions.

Prevent Safari Redirects in OS X Yosemite

Check Safari Security Preferences

Step 1: Open Safari Security Preferences

Click Safari in the menu bar while within the app and select Preferences. In the Preferences window, select the Security tab.

Step 2: Block Pop-Ups and Disable JavaScript

blocking pop-ups on a Mac in SafariTo prevent redirects, make sure the Block pop-up windows and Warn when visiting a fraudulent website options are checked. Unchecking the Enable JavaScript option can help with preventing redirects, but may render certain functions of websites inoperable and cause some websites to not load at all.

Check Safari Privacy Preferences

Step 1: Open Safari Privacy Preferences

Click Safari in the menu bar while within the app and select Preferences. Select the Privacy tab in the Preferences window.

Step 2: Block Cookies and Disable Website Tracking

Block Safari cookies on a MacCheck the Ask websites not to track me option. As with iOS, selecting Always block or Allow from website I visit under the Cookies and website data section may prevent redirects, but can also affect features of websites such as auto-login and suggested products.

More about Nick Markman on

Nick is the store manager of CityMac in the Issaquah Highlands. He is a Western Washington University graduate with a degree in business adminstration and marketing. In addition to managing the Issaquah store, Nick is the editor-in-chief of the CityMac blog,, and the manager of the CityMac twitter page, @CityMacTweets.

Nick Markman on LinkedIn