Skip to content

Privacy and security

How to Block Ads and Trackers in Apps on Android (2026)

By the llcloud team 6 min read

Quick answer

Repel blocks ad, tracker and malware domains for every app on your Android phone. Its DNS filter checks each lookup against blocklists such as HaGeZi or OISD and shows which app asked for what. The built-in route is Private DNS with a blocking provider such as dns.adguard-dns.com. Neither can remove ads served from the same domain as the content, so YouTube ads still play.

Most ads and trackers in apps arrive the same way. The app asks the phone where a domain such as an ad server or analytics endpoint lives, and then connects to it. Stop that lookup and the request never leaves the phone. That is what DNS blocking does, and on Android you can set it up without root in a few minutes. This guide covers the built-in way first, then how Repel does it with blocklists you pick, and where DNS blocking stops working.

How does blocking ads in apps work on Android?

It works by refusing the lookups for known ad and tracker domains. Before an app talks to a server, it asks for that server's address by name. A DNS filter compares the name with a blocklist. A listed name gets a dead answer, so the connection fails at once. Every other name resolves normally.

This happens below the apps, so it covers every app on the phone at once, including games, news apps and the system itself. It also means the filter never sees or changes the content of a page or an app. It only decides which names can be found. Our post on what a DNS filter can and cannot block explains the mechanics in more depth.

How do I block ads with Private DNS?

Point Android's Private DNS setting at a provider that blocks ad and tracker domains. Private DNS arrived in Android 9 and sends every lookup, encrypted with DNS over TLS, to the host you name.

  1. Open Settings > Network & internet > Private DNS. On Samsung Galaxy phones it is under Settings > Connections > More connection settings > Private DNS. If you cannot find it, search Settings for "Private DNS".
  2. Choose Private DNS provider hostname.
  3. Type a blocking provider's hostname, for example dns.adguard-dns.com. AdGuard's own page says this default server blocks ads and trackers.
  4. Tap Save.

That is the free starting point, and it keeps working with no app running. Our full Private DNS guide covers the setting and its quirks.

It has limits you will notice quickly. You get the provider's list and nothing else. There is no log, so when an app breaks you cannot see which domain was blocked. You cannot allow one domain, use a different list, or treat one app differently. And most VPN apps send DNS through their own tunnel, so Private DNS may not apply while a VPN is connected.

How does Repel block ads and trackers in apps?

Repel runs the filter on your phone with the blocklists you choose. A local, DNS-only VPN checks every lookup against your lists and sends allowed lookups out encrypted with DNS over HTTPS. Switch it on and it works in seconds, with no account and no pairing.

What you get over plain Private DNS:

  • Blocklists you pick. Community lists such as HaGeZi, OISD, 1Hosts and StevenBlack cover ads, trackers, malware, phishing, scam shops and phone-maker telemetry. They update over Wi-Fi.
  • An activity log. It shows which app looked up which domain, and whether it was blocked. Tap an entry to block or allow it, or cut that app off the internet.
  • Allow rules. When a list catches something an app needs, allow that one domain and keep everything else blocked.
  • Apps that skip the filter. Let a chosen app bypass the filter entirely if it misbehaves behind it.
  • Timed pauses. Pause for a few minutes when a sign-in page or a shop checkout needs it.

The free version includes the filter with HaGeZi Light or Pro, the activity log with weekly stats, allow rules and pauses. Pro, a one-time purchase, adds HaGeZi Pro++ and Ultimate, threat intelligence and every extra list, your own lists and rules, and per-app domain rules, such as letting one app reach only the domains you list.

Prefer no VPN at all? Repel also has one-tap Private DNS. Pick AdGuard DNS, Quad9, Cloudflare, Control D, CleanBrowsing or Google, or type your own host, and Repel switches the setting for you. It keeps working with Repel closed.

Which blocklist should you start with?

Start light and move up. HaGeZi Light blocks the most common ad and tracker domains and rarely breaks anything. HaGeZi Pro catches more, and both are free in Repel. If an app stops working, check the activity log for a blocked lookup at that moment and allow it.

What can DNS blocking not remove?

It cannot remove ads that come from the same domain as the content. A DNS filter answers yes or no for a whole name. If an app loads its videos and its ads from the same server, blocking that server would break the app, so the ads stay.

  • YouTube ads. YouTube serves its video ads from the same domains as the videos. Repel does not block YouTube ads, and no DNS filter can. personalDNSfilter, another DNS filter, says the same on its own store listing about YouTube and Facebook ads.
  • Ads built into the app. Some apps ship their banners inside the app, or fetch them from their own servers. Nothing at the DNS level can tell those apart from content.
  • Apps with their own encrypted DNS. An app that resolves names itself over DNS over HTTPS never asks the phone, so the phone's filter does not see those lookups.

What DNS blocking does well is the large background layer: tracking and analytics calls, many third-party ad networks, and malware and phishing domains. That is a lot of traffic you never see.

Does this work on Android TV?

Repel does. It runs on Android TV and Google TV as the full app, laid out for the remote, and blocks ad, tracker and telemetry domains for every app on the TV. It cannot remove ads inside video streams that come from the same server as the video. Our guide to blocking ads on Android TV has the steps.

Which option should you use?

Repel, because it gives you the same domain blocking as Private DNS plus the control to fix what it breaks.

Repel Private DNS by hand
Blocks ad and tracker domains in every app ✓ ✓
Choose your own blocklists ✓ ✗
See which app looked up what ✓ ✗
Allow one domain an app needs ✓ ✗
Cut one app off the internet ✓ ✗
Works with no VPN ✓ (one-tap Private DNS) ✓
Works on Android TV ✓ Depends on the TV
Removes YouTube ads ✗ ✗

If you also want to stop an app from going online at all, see how to block an app's internet access. To keep trackers out while a VPN holds the slot, read blocking trackers without a VPN. Comparing tools? See Repel vs NetGuard, Repel vs personalDNSfilter and our list of NextDNS alternatives.

Sources

Questions

Can I block ads in all apps on Android without root?

You can block the ad and tracker domains most apps call, without root. Android's Private DNS with a blocking provider does it for every app, and Repel's DNS filter does it with blocklists you choose and a log of what each app looked up. Ads that come from the same server as the app's content still get through, because blocking that server would break the app.

Why do YouTube ads still play with a DNS blocker?

YouTube serves its video ads from the same domains as the videos. A DNS filter can only answer yes or no for a whole domain name, so it cannot let the video through and stop the ad. Repel does not block YouTube ads, and no DNS filter or Private DNS provider can. The same goes for other apps that serve ads from their own servers.

Is Private DNS enough to block ads?

It is a good start. A blocking provider such as AdGuard DNS stops many ad and tracker domains for every app, with no app and no VPN. You get that provider's list and nothing else, though: no log of what was blocked and no way to allow one domain that an app needs. Repel's filter adds your own choice of lists, the activity log and allow rules.

Will blocking ads break some apps?

Sometimes. A list can catch a domain an app needs for logins, images or payments, and the app then fails in odd ways. Start with a lighter list, such as HaGeZi Light, and move up if you want more. In Repel's activity log you can tap the blocked lookup and allow just that domain, instead of switching protection off.

Does Repel's filter slow down my phone or drain the battery?

It handles DNS lookups only. Repel's local VPN carries one virtual DNS address and nothing else, so the rest of your traffic goes over the normal network untouched. Allowed lookups go out encrypted with DNS over HTTPS to the server you choose, and nothing is sent to us.

Keep reading