Skip to content

How to block ads on your phone: iPhone and Android, no root needed

Blocking ads on a phone needs no root or jailbreak: Android has Private DNS built in, and iPhone has Safari content blockers and DNS profiles. This guide gives the steps for each, says who can see which sites you visit, and then says plainly what it cannot block: blocking by domain does not catch every ad, and ads inside apps or on YouTube often still show. Setting names follow Android 16 and iOS 26 and may differ a little between phone brands and system versions.

  1. Open the Settings app.
  2. Go to Network & internet › Private DNS. On Samsung: Connections › More connection settings › Private DNS. If you cannot find it, search "DNS" in the Settings search box. Needs Android 9 or later.
  3. Choose "Private DNS provider hostname".
  4. Enter the hostname of a DNS service that blocks ads, for example dns.adguard-dns.com (the default public server of AdGuard DNS), and save. Use the hostname the provider itself publishes.
  5. From now on, any domain on the provider's block list will not resolve, so ads from that domain do not load in the browser or in apps that use the phone's DNS. Open a page with plenty of ads to see the difference.
  6. To turn it off, go back to the same screen and pick "Automatic" or "Off". If a site or app breaks because a domain is blocked, turning it off tells you whether blocking is the cause.

iPhone: a Safari content blocker, or a DNS profile

Section titled “iPhone: a Safari content blocker, or a DNS profile”
  1. Safari content blocker: install an ad-blocking app from the App Store that offers a Safari content blocker, and read the developer's privacy policy before installing.
  2. Open Settings › Apps › Safari › Extensions (iOS 18 and earlier: Settings › Safari › Extensions).
  3. Tap the blocker you installed and switch on "Allow Extension". Some apps also have their own lists you must switch on inside the app.
  4. Reload a page in Safari to see the result. This only works in Safari; it does not block ads in other apps.
  5. DNS profile (blocks by domain for apps too): go to the site of a DNS service that blocks ads and supports iPhone (AdGuard DNS has instructions and a profile), download its DNS configuration profile, and tap Allow when Safari asks.
  6. Open Settings, tap "Profile Downloaded" at the top, choose Install and enter the device passcode. Only install a profile from a provider you trust.
  7. Go to Settings › General › VPN, DNS & Device Management › DNS and select the profile you installed (the name of this section changes a little between iOS versions). To turn it off, pick "Automatic" again and remove the profile on that screen.
  • Android: Firefox for Android lets you install add-ons such as uBlock Origin (Menu › Add-ons). Chrome on Android does not allow extensions.
  • iPhone: besides a Safari content blocker, some browsers block ads on their own; how and with which list differs between browsers, so check each one's official page before choosing.
  • Lean Browser blocks ads and trackers inside the app from a bundled list, with nothing extra to install (see the section below).
  • With a provider's DNS (both Private DNS on Android and a DNS profile on iPhone), that provider receives every domain name the phone looks up: it sees which sites you open, though not the contents of an HTTPS page. Read their logging policy before you use it.
  • By default that is your carrier's DNS, which also sees these lookups. Switching provider only changes who sees them; it does not make you anonymous.
  • A Safari content blocker and a browser add-on run on the device: the block list lives in the app or add-on, but that app or add-on can read browsing data within the permission you grant, so read its policy too.
  • Blocking by domain does not catch every ad: when an ad and the content share a domain, you cannot block just the ad without blocking the content too.
  • YouTube and many big apps serve ads from their own servers, so DNS or a content blocker usually cannot cut those ads; do not expect an ad-free YouTube.
  • Ads inside apps: only those coming from third-party ad domains on the list are blocked; ads an app serves itself still show.
  • Blocking can break some sites or apps (sign-in, payments, empty boxes where an ad used to be). When that happens, turn blocking off for a while.
  • This guide is about ads you see; stopping apps from tracking you is a separate job (see the guide on turning off ad tracking), and none of these methods hides your IP address or works as a VPN.
  • The steps follow the documentation and settings of Android 16 and iOS 26 on 28 October 2026; setting names may differ between phone brands and system versions.
  • Lean blocks third-party ads and trackers by domain before they load, using the bundled list of about 46,000 EasyList/EasyPrivacy domains; no root, no custom DNS and no extension to install.
  • Lean only blocks inside the browser itself: it does not block ads in other apps, nor ads YouTube serves from its own domain; blocking is by domain, so it does not catch every ad.
  • Lean saves no history and forgets cookies and the session after the time you chose (1 minute by default), when you tap Forget now, or when you shake or turn the phone face down.
  • Lean is not a VPN, does not hide your IP address and does not resist fingerprinting.
  • On Android, WebView writes part of your browsing data to disk; Lean erases it when it forgets and cleans again each time you open the app.

Ad and tracker blocking: what it blocks and what it does not

Turn off ad tracking on your phone

Free, no ads, no account, no analytics.

Download on the App StoreGet it on Google Play

Found something wrong or have a question? See the Support page.

Read more