Guide

How to Block Ads in 2026

A practical, no-fluff guide to blocking ads — on your browser, your phone, and your entire home network. We cover what each method blocks, what it doesn’t, and how long it takes to set up.

On this page
  1. Quick comparison
  2. Browser extension
  3. DNS-level blocking
  4. Pi-hole / network
  5. Hosts file
  6. Block ads on mobile
  7. YouTube & Twitch
  8. The 30-second answer

If you typed “how to block ads” into a search box, you probably just watched a 30-second pre-roll ad to learn how to block ads. That irony is doing a lot of the work in this guide. The good news: blocking ads in 2026 is faster, cleaner, and more effective than it has ever been.

This guide covers the three categories of ad blocking — browser extensions, DNS-level blockers, and hosts file edits — and tells you which one to use for which job.

Quick comparison: which method is right for you?

Method Where it works Setup time Blocks YouTube ads? Difficulty
Browser extensionOne browser on one device15 secondsYesEasy
DNS blockerEvery app on the device2 minutesPartialEasy
Pi-hole / networkEvery device on your network30–60 minutesPartialModerate
Hosts fileOperating-system-wide10 minutesNoModerate
Browser + DNS comboBest coverage5 minutesYesEasy

For 90% of people the answer is method one: a Chrome extension. We’ll start there.

Method 1: Install a Chrome ad blocker extension

Browser extensions are the gold standard for blocking ads because they can see and modify the page after it loads. They block banner ads, video pre-rolls, sticky overlays, pop-ups, and tracker pixels in one step.

Step-by-step: install Omit on Chrome

  1. Open the Chrome Web Store at chromewebstore.google.com.
  2. Search for “Omit Ad Blocker” (or any reputable blocker — uBlock Origin, AdGuard, and Omit are the three I’d trust).
  3. Click Add to Chrome, then confirm the permission dialog.
  4. Pin the icon to your toolbar so you can quickly pause it on a per-site basis.
  5. Reload any open tabs. That’s the entire setup.

Why we recommend Omit: it’s free, it’s built on Chrome’s native Manifest V3 declarativeNetRequest API (so it survives the 2024+ platform changes that broke many older blockers), and it doesn’t run any analytics on you. The competition is great too — see our best ad blocker for Chrome comparison for the full feature-by-feature breakdown.

What an extension blocks

  • Display banner and skyscraper ads
  • Video pre-rolls and mid-rolls (including YouTube)
  • Sticky overlays and full-page interstitials
  • Newsletter pop-ups, exit-intent modals, and cookie banners
  • Cross-site trackers (Google Analytics, Facebook Pixel, Hotjar)
  • Cryptominers and obvious phishing endpoints

What an extension does not block

  • Ads inside non-browser apps (Spotify desktop app, mobile games)
  • Smart-TV ads
  • Sponsored content built into the page’s own HTML (you’ll need SponsorBlock for those)

Method 2: DNS-level blocking

DNS blockers work by refusing to look up the IP addresses of known ad servers. They run upstream of your browser, so they catch ads in any app on the device — including mobile games and smart-TV apps that browser extensions can’t reach.

The easy option: NextDNS or AdGuard DNS

On Android, open Settings → Network → Private DNS and enter dns.adguard.com. On iOS, install the AdGuard DNS configuration profile. On macOS or Windows, point your network adapter’s DNS at the same server. That’s the entire setup.

Trade-off: DNS blockers can’t block YouTube ads as well as a browser extension can, because YouTube serves ads from the same domain as videos. For YouTube specifically, layer a browser extension on top — see our YouTube guide.

Method 3: Block ads across your whole network with Pi-hole

Pi-hole turns a Raspberry Pi (or any always-on Linux box) into a network-wide DNS sinkhole. Every device that uses your home Wi-Fi — phones, laptops, smart TVs, IoT — gets ad-blocked automatically with no per-device setup.

It’s the most powerful option, and it’s also the most fiddly. Plan on 30 to 60 minutes for the initial setup, plus occasional debugging when a service breaks. If you already own a Raspberry Pi, this is a fantastic weekend project. If you don’t, start with method 1.

Method 4: Edit your hosts file (advanced)

Your operating system has a hosts file that maps domain names to IP addresses before any DNS lookup happens. By pointing known ad domains to 0.0.0.0, you block them at the OS level.

Lists like StevenBlack/hosts on GitHub bundle 100,000+ ad and tracker domains into a ready-to-paste file. It’s free, lightweight, and it works for every browser and most apps. The downside: it doesn’t support cosmetic filtering (hiding the empty space where an ad used to be) and it can’t handle the dynamic ad-serving domains modern publishers rotate through.

How to block ads on mobile

iPhone & iPad

Safari supports content blockers. Install AdGuard for Safari (free, privacy-respecting) or 1Blocker. They work on iOS 16 and newer. For ad blocking inside iOS apps, you’ll need a DNS profile — same instructions as method 2 above.

Android

Use Brave or Firefox as your browser (both ship with built-in blocking), or install Kiwi Browser and run a Chrome extension. For app-level blocking, the simplest path is the Private DNS setting → dns.adguard.com.

Specific platforms: YouTube, Twitch, Hulu, Spotify

Each platform has its own quirks. We’ve written dedicated guides for the two biggest:

The 30-second answer

Install Omit (or another reputable Chrome ad blocker) right now. If you want extra coverage on mobile and inside apps, point your phone’s Private DNS at dns.adguard.com. That’s 95% of the value with 2 minutes of work.

Common questions about blocking ads

What is the easiest way to block ads?

Install a Chrome ad blocker extension like Omit. It takes about 15 seconds, requires no setup, and blocks ads on every website automatically. For browser ads, an extension is the fastest path.

Is blocking ads legal?

Yes. Blocking ads on your own device is legal in every country with established case law (the EU, US, UK, and Germany have all confirmed this). Websites can ask you to disable your blocker, but they cannot legally require it.

Will blocking ads break websites?

Rarely. Modern ad blockers like Omit, uBlock Origin, and AdGuard maintain compatibility lists that prevent breakage on the top 10,000 sites. If you find a broken site, you can pause the blocker on that domain in one click.

How do I block ads on Android without root?

Use a DNS-level blocker (NextDNS, AdGuard DNS, or set Private DNS to dns.adguard.com in Android settings). It blocks ads in apps and browsers without requiring root, an APK sideload, or a VPN.

Can I block YouTube ads specifically?

Yes, with a browser extension (Omit, uBlock Origin) on desktop. On mobile, use YouTube Premium, NewPipe (Android), or a DNS blocker that targets googlesyndication and doubleclick. See our YouTube ad blocker guide.

What is the difference between an ad blocker and a tracker blocker?

An ad blocker hides advertisements. A tracker blocker stops third-party scripts (analytics, fingerprinters, retargeting pixels) from collecting data about you. Most modern blockers — including Omit — do both by default.

Skip ahead. Just install Omit.

Free, private, no account. The fastest possible answer to ‘how do I block ads’.

Add to Chrome — It’s free

Free · Open development · No account required