How to hide your IP address and prevent tracking in Safari

Learn how to browse the web in Safari privately and securely by hiding your IP address from trackers and websites, and removing tracking information from URLs.

Safari icon on green background

Many websites use sneaky techniques to track you across the web. One of the most obvious tricks in their playbook is determining your geographical location based on your IP address. Also, you’ll notice that some web links have an unusually long string of random alphanumeric characters appended to the end of the URL, which is another tracking technique

Apple’s Safari browser on your iPhone, iPad, and Mac includes two privacy-focused features designed to hide your IP address and remove tracking links, and we show you how to use them.

Hide your IP address in Safari

Safari lets you hide your IP address from trackers that tirelessly collect your data or both trackers and websites. Hiding your IP address from trackers is free. However, you must turn on iCloud Private Relay to hide your IP address from websites. iCloud Private Relay is available with paid iCloud storage or an Apple One subscription. If a family member has one of these subscriptions, they can share it with you via the built-in Family Sharing feature.

iPhone and iPad

  1. Open Settings, scroll to the bottom, and choose Apps.
  2. Select Safari from the list of installed apps.
  3. Tap Hide IP Address under the Privacy & Security section.
  4. Select Trackers and Websites instead of Trackers Only or Off. If you don’t have iCloud Private Relay turned on, you won’t see the “Trackers and Websites” option here.
Hide IP address from Trackers and Websites in Safari on iPhone

Mac

  1. Launch Safari on your Mac, then click the Safari > Settings menu.
  2. Select the Privacy tab.
  3. Tick the box next to “Hide IP address,” then hit the menu  that appears and select “from Trackers and Websites” instead of “from Trackers only.”
Hide IP address from Trackers and Websites in Safari on Mac

Enabling Safari’s advanced tracking and fingerprinting protection

Follow these steps to remove tracking URLs in Safari for Mac and stop trackers from profiling your browsing behavior.

iPhone and iPad

  1. Go to Settings > Apps, and pick Safari from the list.
  2. Scroll to the bottom and choose Advanced.
  3. Tap Advanced Tracking and Fingerprinting Protection.
  4. Select All Browsing instead of Private Browsing or Off.
Turn on advanced tracking and fingerprinting protection for all browsing in Safari on iPhone

Safari’s private browsing mode automatically removes tracking URLs and stops trackers from profiling you even if you haven’t specifically turned on these options.

Mac

  1. Open Safari and click the Safari > Settings menu.
  2. Select the Advanced tab.
  3. Tick the box next to the Privacy option.
  4. Click the menu next to “Use advanced tracking and fingerprinting protection” and select “in all browsing.”
Use advanced tracking and fingerprinting protection for all browsing in Safari on Mac

With these anti-tracking options turned on, you may encounter issues with some websites, ranging from the inability to make web payments, failing to load special offers or discount links, seeing non-localized instead of localized content, and similar. In that case, follow the steps above and turn off the option to hide your IP address from websites. Switching off iCloud Private Relay can also help.

Other handy tips for Safari: