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.
-
Browser extension
Easiest. Install once, ads disappear on every site you visit.
-
DNS-level blocker
Covers every app on the device, including mobile and TV.
-
Pi-hole
Network-wide blocking for every device on your Wi-Fi.
-
Hosts file
OS-wide static block list. No browser dependency.
On this page
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 extension | One browser on one device | 15 seconds | Yes | Easy |
| DNS blocker | Every app on the device | 2 minutes | Partial | Easy |
| Pi-hole / network | Every device on your network | 30–60 minutes | Partial | Moderate |
| Hosts file | Operating-system-wide | 10 minutes | No | Moderate |
| Browser + DNS combo | Best coverage | 5 minutes | Yes | Easy |
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
- Open the Chrome Web Store at
chromewebstore.google.com. - Search for “Omit Ad Blocker” (or any reputable blocker — uBlock Origin, AdGuard, and Omit are the three I’d trust).
- Click Add to Chrome, then confirm the permission dialog.
- Pin the icon to your toolbar so you can quickly pause it on a per-site basis.
- 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:
- YouTube ad blocker — how it works and what to do when YouTube changes
- Twitch ad blocker — the proxy trick and why it’s necessary
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.