sodcalculator

10 Tech How-To

Block Ads in Your Web Browser: Step-by-Step

Guide 10-43735 · Updated · Step by step

This guide shows you how to stop ads from appearing in your web browser, whether you use Chrome, Firefox, Edge, Safari, or another browser. You’ll learn the most effective methods—from built-in settings to dedicated ad blockers—and get clear steps to reduce or eliminate ads, pop-ups, and tracking. No technical expertise is needed, just a few minutes and an internet connection.

What You’ll Need

  • A computer, smartphone, or tablet with a web browser installed.
  • An internet connection (to download extensions or apps).
  • Administrator or owner access to your device (to install software or change system settings).
  • For mobile browsers: the ability to install apps from your device’s app store.

Step-by-Step

  1. Identify your browser and device. The method differs slightly between desktop (Windows/Mac) and mobile (Android/iOS), and between browsers. Check the top-left or top-right corner of your browser window for the name (e.g., Chrome, Firefox, Edge, Safari).
  2. Start with the browser’s built-in ad blocking (if available). Some browsers, like Brave and Opera, block ads by default. For Chrome, Firefox, or Edge, you can enable “strict” tracking protection or “block pop-ups” in settings—this stops many pop-ups but not all in-page ads. For example, in Chrome: go to Settings > Privacy and Security > Site Settings > Pop-ups and redirects, and set to “Blocked”. In Firefox: Settings > Privacy & Security > Enhanced Tracking Protection, choose “Strict”.
  3. Install a dedicated ad blocker extension (desktop). The most effective way to block ads is to add a browser extension. Go to your browser’s official extension store (Chrome Web Store, Firefox Add-ons, Microsoft Edge Add-ons, or Safari Extensions). Search for a reputable ad blocker like “uBlock Origin” or “AdGuard”. Click “Add to [Browser]” and confirm the installation. The extension icon will appear in your toolbar.
  4. Enable the ad blocker. After installation, the ad blocker usually works automatically. To verify, visit a site that shows ads and check if they are gone. If not, click the extension icon and ensure it’s toggled on. You may need to refresh the page.
  5. Set up ad blocking on mobile browsers. For Android: install a browser like Firefox or Brave that supports extensions, or use Samsung Internet with AdGuard extension. For iOS: Safari supports content blockers—go to Settings > Safari > Content Blockers, and enable a blocker you’ve installed from the App Store (e.g., AdGuard, 1Blocker). Alternatively, use a dedicated ad-blocking browser like Brave or Firefox Focus.
  6. Use a private DNS or VPN (optional, for system-wide blocking). To block ads across all apps, not just the browser, you can change your device’s DNS to a filtering service like AdGuard DNS or NextDNS. On Android: Settings > Network & Internet > Advanced > Private DNS, enter “dns.adguard.com”. On iOS: Settings > Wi-Fi > (i) next to your network > Configure DNS > Manual, add “94.140.14.14” and “94.140.15.15”. This blocks ads at the network level.
  7. Adjust ad blocker settings for specific sites. Some sites may not work correctly with ad blocking (e.g., videos won’t play). To fix this, click the ad blocker icon and select “Pause on this site” or “Disable for this site”. You can also add a site to the allowlist if you want to support it.
  8. Clear your browser cache and cookies. After installing an ad blocker, old ads may still be cached. Go to your browser settings and clear browsing data (at least cache and cookies). This helps the ad blocker work properly.

Common Mistakes

  • Not updating the ad blocker. Ad blockers need regular updates to recognize new ad servers. If you see ads, check for updates in your browser’s extension page.
  • Installing too many ad blockers. Running multiple ad blockers can cause conflicts and slow down your browser. Stick to one reliable one.
  • Ignoring browser-specific settings. Some browsers have their own ad blocking that may conflict with extensions. For example, Chrome’s “Ads” setting under Site Settings can override your extension. Ensure it’s set to “Allow” (or “Block” if you want extra blocking) but not both.
  • Forgetting to enable the blocker on mobile. On iOS, you must go to Settings > Safari > Content Blockers and manually turn on the toggle after installing an app.
  • Using “private” or “incognito” mode incorrectly. Many ad blockers are disabled by default in private mode. You need to enable them in the extension’s settings to work there.

Tips

  • Choose a reputable ad blocker. uBlock Origin is open-source and widely recommended for its low resource use. AdGuard offers a user-friendly interface. Avoid unknown extensions that may sell your data.
  • Use “cosmetic filtering” for stubborn ads. Some ads are embedded in the page’s code. Advanced ad blockers can hide these elements—enable “cosmetic filtering” or “element hiding” in settings.
  • Block ads on YouTube and streaming sites. Standard ad blockers may not work on YouTube. Use a dedicated script like “SponsorBlock” (available as an extension) to skip sponsored segments, or a browser like Brave that blocks YouTube ads.
  • For a clean experience, combine with a pop-up blocker. Some ad blockers include pop-up blocking, but if not, enable the browser’s built-in pop-up blocker as well.
  • Consider a hosts file (advanced). On Windows or Mac, you can edit the hosts file to redirect known ad servers to 0.0.0.0. This is more technical but blocks ads system-wide. Use a pre-made list like “StevenBlack’s hosts” but be careful—backup your original file first.

Troubleshooting

  • Ads still appear after installing an ad blocker. First, refresh the page (Ctrl+F5 or Cmd+Shift+R). If ads persist, check that the extension is enabled and updated. Some sites use anti-ad-block scripts—try a different ad blocker or enable “advanced blocking” in its settings.
  • Websites break or videos won’t play. This is often because the ad blocker is blocking essential scripts. Click the extension icon and select “Disable on this site” temporarily. If the site works, you can add an exception rule (e.g., allow specific domains) in the ad blocker’s dashboard.
  • Ad blocker not working on mobile. On iOS, ensure you’ve enabled the content blocker in Safari settings. On Android, if using Chrome, note that Chrome doesn’t support extensions—use Firefox or a dedicated browser instead.
  • Browser is slow after installing an ad blocker. Some ad blockers consume memory. Try disabling unused features, or switch to a lighter one like uBlock Origin. Also, clear your browser cache.
  • Private DNS doesn’t block ads. Make sure you’ve entered the correct DNS address. Test with a site like “whatismydns.com”. If it still doesn’t work, your ISP may be overriding DNS—try a VPN with ad blocking.

Frequently Asked Questions

Q: Is it legal to block ads?
A: Yes, blocking ads is legal in most countries. It’s your right to control what content you see, though some websites may ask you to disable your ad blocker to access their content.

Q: Will ad blocking affect my favorite websites?
A: Some sites rely on ad revenue and may ask you to whitelist them. You can allow ads on specific sites by pausing your ad blocker for that site. Others may have paywalls or limited content if you block ads.

Q: Do ad blockers work on all browsers?
A: Most popular browsers support extensions, but some (like Safari on iOS) require specific content blockers. Chrome on Android doesn’t support extensions, so you’ll need a different browser or a DNS-based solution.

Q: Can I block ads without installing anything?
A: Yes, you can use your browser’s built-in pop-up blocker and enable “Do Not Track” (though it’s not very effective). For stronger blocking, a DNS service like AdGuard DNS works without installing an app—just change your device’s DNS settings.

Q: Why do I still see ads on YouTube or Facebook?
A: These platforms use aggressive ad delivery that may bypass standard blockers. For YouTube, try a browser like Brave or a dedicated script like “SponsorBlock”. For Facebook, ad blockers can hide sponsored posts, but some may slip through—use the “Hide” option.

Q: Are ad blockers safe?
A: Reputable ones are safe and open-source. Avoid unknown extensions with poor reviews, as they may collect your data. Stick to well-known ones like uBlock Origin, AdGuard, or Privacy Badger.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →