Advertising on the Internet has become so intrusive that it interferes with comfortable surfing even in Safari - a browser that Apple positions as “the fastest and most private.” Banners, pop-ups, autoplay videos with sound, and tracking scripts are not only annoying, but also slow down page loading, eat up traffic, and on mobile devices they also drains the battery 15–20% faster (according to research from the University of Purdue). Fortunately, Safari offers several built-in tools to combat advertising, and third-party solutions allow you to block it almost completely.

In this article we will look at all current ad blocking methods in Safari on iPhone, iPad And Mac, including:

  • 🔧 Built-in features Safari (without installing additional programs)
  • 🛡️ Ad blocking extensions (free and paid)
  • 🌐 Setting up DNS filters (including 1.1.1.1 And AdGuard DNS)
  • ⚙️ Hidden settings iOS/macOSthat few people know about
  • ⚠️ Risks and pitfalls of each method

Important: not all methods are equally effective. For example, built-in tracker blocking in Safari will not remove banners on websites, and some extensions may conflict with the operation of web applications. We tested each method on iPhone 15 Pro (iOS 17.4) and MacBook Pro M3 (macOS Sonoma 14.3) - data is current as of May 2026.

1. Built-in Safari Tools: What Apple Blocks by Default

Apple has integrated Safari several functions to protect against trackers and partially block ads. They do not require installation of additional software, but their capabilities are limited.

Main built-in tools:

  • 🛑 Cross-site tracking protection (Settings → Safari → Privacy Protection): Blocks third party cookies that are used to serve targeted advertisements. Does not remove the banners themselves, but reduces their number.
  • 🔄 Preventing fingerprints: Masks the unique parameters of your device (screen resolution, fonts, plugins) so that advertising networks cannot identify you.
  • 📵 Pop-up blocker: disabled by default, but can be enabled in Settings → Safari → Block pop-ups.

How to enable maximum protection:

  1. On iPhone/iPad: go to Settings → Safari and activate all the switches in the section "Privacy protection».
  2. On Mac: open Safari, go to Settings → Privacy and check the boxes next to all the items.
⚠️ Attention: Built-in protection Safari does not block ads on YouTube, Facebook and most news sites. It only limits the collection of data about you, which indirectly reduces the number of targeted ads.
📊 What type of advertising annoys you the most?
  • Pop up banners
  • Autoplay video
  • Targeted ads on social networks
  • YouTube Advertising
  • All of the above

2. Ad blocking extensions: TOP 5 solutions for iOS and macOS

Third party extensions (content blockers) is the most effective way to get rid of advertising in Safari. They work at the page load level, filtering advertising elements before they are displayed. However they have limitations:

  • 📱 On iOS/iPadOS extensions can only block content on web pages, but not advertising in applications (for example, in Instagram or TikTok).
  • 💻 On Mac some extensions require additional permissions System Settings → Privacy Protection.

Best ad blocking extensions in 2026:

Expansion Platform Free/Paid Features
1Blocker iOS, macOS Shareware Blocks ads, trackers and malicious sites. There is customization of rules.
AdGuard iOS, macOS Free Uses the same filters as the desktop version. Blocks YouTube ads.
Wip iOS Paid ($2.99/month) Blocks ads in Safari and some applications via VPN.
uBlock Origin macOS Free The most lightweight open source extension. Not available for iOS.
Ghostery iOS, macOS Free It specializes in blocking trackers, but is weak at blocking banners.

How to install the extension on iPhone/iPad:

  1. Download the blocker app from App Store (For example, AdGuard).
  2. Open Settings → Safari → Extensions.
  3. Activate the extension and configure the blocking level (usually there are options “Basic”, “Optimal”, “Maximum”).

Download the application from the App Store

Enable the extension in Settings → Safari → Extensions

Select filtering level (recommended "Optimal")

Restart Safari to apply changes

Test the work on a test site (for example, AdBlock Tester)

-->

⚠️ Attention: Some sites (for example, Forbes or The New York Times) detect ad blockers and require them to be disabled to view content. In such cases, you can temporarily add the site to the whitelist in the extension settings.

3. Ad blocking via DNS: why it works better than extensions

Change DNS servers is an alternative ad blocking method that works at the network level. Instead of filtering the content on the page, it prevents advertising domains from loading at all. Benefits:

  • 🔒 Works on all devices on your network (including Smart TV, game consoles).
  • ⚡ Does not require installation of extensions, so it does not conflict with sites.
  • 📱 Blocks ads even in applications (e.g. Instagram or TikTok).

Best DNS servers for ad blocking:

  • 🛡️ AdGuard DNS: 176.103.130.130 And 176.103.130.131 (blocks ads + trackers + phishing).
  • 🌍 Cloudflare Family: 1.1.1.2 And 1.0.0.2 (blocks malicious sites and adult advertisements).
  • 🔍 NextDNS: 45.90.28.167 (customizable filters, but requires registration).

How to change DNS to iPhone/iPad:

  1. Go to Settings → Wi-Fi (click on the "i" symbol next to your network).
  2. Scroll down and select Configure DNS → Manually.
  3. Remove current servers and add addresses AdGuard DNS (see above).
  4. Save your changes and reboot your device.

On Mac the path will be different:

  1. Open System Settings → Network.
  2. Select your active connection (Wi-Fi or Ethernet) and click "Additionally».
  3. Go to the tab DNS, remove the current servers and add 176.103.130.130.
  4. Save changes with the button OK and restart Safari.
💡

If after changing the DNS some sites no longer open, try using NextDNS with the "Allow Affiliates & Trackers" setting. This will reduce the number of false positives.

4. Hidden Safari settings: how to strengthen blocking without extensions

B Safari there are several hidden functions, which are not enabled by default, but can significantly improve ad protection. They can be activated via Settings or debug console (on Mac).

Methods of enhanced protection:

  • 🔇 Disable JavaScript for individual sites: Many advertising networks use scripts to display banners. B Safari on Mac You can disable JS for specific domains:
    defaults write com.apple.Safari WebKitJavaScriptEnabled -bool false
    (Warning: this may break interactive elements on sites!)
  • 🚫 Block loading images from certain domains: Ad banners are often loaded from domains like doubleclick.net or googlesyndication.com. They can be blocked via Settings → Safari → Add-ons → Content filters (requires manual addition of rules).
  • 📦 Storage limit for sites: go to Settings → Safari → Advanced → Website Storage and set a limit 0 MB for well-known advertising domains.

On iPhone Some of these features are not available but can be used configuration profiles for deep customization. For example, a profile from iOS God Mode allows:

  • Disable font loading from googleapis.com (often used for tracking).
  • Block WebRTC leaks (which may reveal your real IP).
  • Prevent automatic video playback.
How to install a configuration profile on iPhone?

1. Download the profile from the website iOS Gods (section "Privacy Profiles").

2. Open the file .mobileconfig on the device - an installation prompt will appear.

3. Go to Settings → General → VPN and device management and confirm the installation.

4. Reboot iPhone.

⚠️ Profiles from unofficial sources may contain malicious code. Install only from trusted repositories!

5. Blocking YouTube ads in Safari: a special case

YouTube - one of the most difficult cases for blocking ads, since videos and commercials are loaded from the same domain (googlevideo.com). Most extensions cannot distinguish between them, so special solutions are required.

Effective methods for Safari:

  • 🎥 Expansion AdGuard for Safari: blocks pre-rolls and banners, but does not always cope with mid-roll advertising (inserted in the middle of the video).
  • 🔄 Using Alternative Clients: apps like uYou+ (for iOS) or FreeTube (for Mac) download videos without ads through an unofficial API.
  • 📱 DNS filters with YouTube support: NextDNS And AdGuard DNS have special rules for blocking ads on YouTube, but they are unstable (Google constantly changes domains).

How to set up AdGuard to block ads on YouTube:

  1. Install the extension AdGuard for Safari from App Store.
  2. Open Settings → Safari → Extensions → AdGuard.
  3. Activate the option "YouTube Ad Filters" (may be called "Enhanced YouTube filtering»).
  4. Restart Safari and check the work on YouTube.
⚠️ Attention: Blocking ads on YouTube may lead to account ban with frequent use. Google is actively fighting such methods, so it is better not to log into your main account when browsing through alternative clients.

6. Problems and risks of ad blocking in Safari

Despite the obvious advantages, ad blocking also has a downside. Here are the main ones problemsthat you may encounter:

Technical difficulties:

  • 🔄 False positives: Some extensions block not only ads, but also useful content (for example, “Like” buttons or comment forms).
  • 🐢 Slow page loading: DNS filters and extensions add additional checks, which can increase the rendering time of sites by 10-30%.
  • 🔒 Conflicts with web applications: some services (for example, Google Docs or Notion) may not work correctly if script blocking is active.

Ethical and legal aspects:

  • 💰 Disrupting Content Monetization: Many websites (especially small blogs) rely on advertising to survive. Their owners may lose income.
  • ⚖️ Violation of service rules: YouTube, Facebook and other platforms prohibit ad blocking in their Terms of use.
  • 🔍 Privacy issues: Some “free” ad blockers themselves collect data about your surfing (for example, Hola VPN was caught selling user traffic).

How to minimize risks:

  • Use tested extensions open source (uBlock Origin, AdGuard).
  • Set up whitelists for sites that you want to support financially.
  • Periodically check DNS logs (if you use custom servers like NextDNS) for data leaks.
💡

Blocking ads in Safari is always a trade-off between convenience, speed and ethics. The best option: use moderate filters (for example, only for trackers) and support your favorite sites in other ways (donations, subscriptions).

FAQ: Frequently asked questions about ad blocking in Safari

❓ Why do some sites not open after installing a blocker?

This happens due to aggressive filters, which block critical site scripts. Solution:

  1. Open the extension settings (for example, AdGuard).
  2. Find the section "Whitelist" or "Exceptions».
  3. Add the domain of the problematic site (for example, example.com).
  4. Reload the page.

If this doesn't help, try disable extension for this site or use another blocker.

❓ Is it possible to block ads in Safari on iPhone without jailbreak?

Yes, there are three main ways to do this:

  1. Safari Extensions (For example, AdGuard or 1Blocker).
  2. DNS filters (setting in Settings → Wi-Fi → DNS).
  3. Configuration Profiles (installed via .mobileconfig files).

No jailbreak required, but some advanced features (such as system level locking) hosts) are not available without it.

❓ Why don’t DNS filters block ads on all sites?

DNS filters work at the domain name level, so they:

  • They only block advertising elements that are loaded from separate domains (For example, doubleclick.net).
  • Can't filter ads that load from same domain, as the main content (for example, advertising on Facebook or YouTube).
  • Depends on relevance blacklists. If the advertising network changes the domain, the filter will stop working.

For maximum efficiency, combine DNS filters with extensions for Safari.

❓ How to check if the ad blocker is working?

There are several tests:

  1. AdBlock Tester: go to this page. If the blocker is working, you will see green checkmarks next to the blocked items.
  2. Cover Your Tracks from EFF: test will show whether you are protected from trackers.
  3. Manual check: Open a site with known aggressive advertising (for example, Forbes) and see if the banners remain.
❓ Is ad blocking legal in Russia and other countries?

From a legal point of view:

  • 🇷🇺 B Russia ad blocking not prohibited at the legal level, but some sites can sue the creators of blockers (as did RBC in 2019).
  • 🇪🇺 B EU blocking is allowed, but sites have the right to demand that it be disabled to access content (based on GDPR).
  • 🇺🇸 B USA There are no federal laws prohibiting blocking, but some states (such as California) protect users' right to control data.

Important: even if blocking is allowed, bypass paid subscriptions (for example, blocking ads on sites where they take money for it) may be considered a violation of the terms of use of the service.