DNS to Block Porn: Free Family DNS on Android, Step by Step

Updated

On this page
  1. What DNS filtering is
  2. Option 1: Cloudflare for Families
  3. Option 2: CleanBrowsing Adult Filter
  4. How to set it on Android
  5. What DNS filtering cannot do
  6. Making it harder to undo
  7. FAQ
  8. Block it for good with Mamori

Short answer: You can point your phone at a DNS service that refuses to resolve adult sites. On Android, open Settings, find Private DNS, choose Private DNS provider hostname, enter family.cloudflare-dns.com (Cloudflare, blocks malware and adult content) or adult-filter-dns.cleanbrowsing.org (CleanBrowsing), and tap Save. It is free and takes a minute. The catch is that you can change it back just as quickly, so the rest of this guide covers the limits and how to add a lock.

What DNS filtering is

When you type a web address, your phone asks a DNS server to turn the name into a number it can connect to. A filtering DNS service answers "no" for sites on its adult blocklist, so the page never loads. Because it works on names rather than page content, it covers every browser and most apps that use the phone's DNS, not just one.

Option 1: Cloudflare for Families

Cloudflare publishes two family DNS options. The one that blocks adult content as well as malware is:

  • Hostname for Android Private DNS: family.cloudflare-dns.com
  • IP addresses (for devices or routers that need them): 1.1.1.3 and 1.0.0.3

The malware-only version (security.cloudflare-dns.com, or 1.1.1.2 and 1.0.0.2) does not block adult content, so avoid it for this purpose.

Option 2: CleanBrowsing Adult Filter

CleanBrowsing offers several filters. Its Adult Filter blocks adult, pornographic, and explicit sites, enforces SafeSearch on Google and Bing, and blocks malicious and phishing domains. It does not block proxies, VPNs, or mixed-content sites such as Reddit. CleanBrowsing's Family Filter goes further and does block proxy and VPN domains and mixed-content sites.

  • Hostname for Private DNS: adult-filter-dns.cleanbrowsing.org
  • IPv4 addresses: 185.228.168.10 and 185.228.169.11

CleanBrowsing's free tier needs no account but, according to its page, has throttled service, limited filter settings, and no support. Paid plans add configurable settings and support.

How to set it on Android

Steps follow Google's Android help page. The exact words differ a little between phone makers and Android versions.

  1. Open the Settings app.
  2. Tap Network & internet, then Private DNS. On some phones it sits under an Advanced heading, as Cloudflare's own instructions put it. If you cannot find it, search Settings for "Private DNS".
  3. Choose Private DNS provider hostname. (The other options are Off and Automatic.)
  4. Type one of the hostnames above, exactly, with no https:// in front.
  5. Tap Save.

Then test it. Open your browser and check that a normal site still loads. If everything stops working, the hostname was probably mistyped, or your network does not allow it: set Private DNS back to Automatic and try again.

Chrome also has its own Use secure DNS setting (Chrome menu, Settings, Privacy and security). Google's page does not say how it interacts with Android's Private DNS, so if a site you expect to be blocked still loads in Chrome, check that setting too.

What DNS filtering cannot do

Be realistic about the limits:

  • You can undo it yourself. Anyone with access to your Settings can set Private DNS to Off or Automatic. A setting alone is not a lock.
  • It only sees domain names. It cannot see what is on a page, so a new site that is not on the list yet, or content on a mainstream site, can slip through.
  • Other software may not follow it. A VPN or an app that handles DNS itself may not use the choice you made in Settings.
  • Free tiers have limits. CleanBrowsing says free service is throttled with limited settings, and neither service is a promise that nothing gets through.
  • It does nothing about the urge. It only makes the next step harder to take.

You can also set the same DNS on your home router so every device on the Wi-Fi uses it. Router menus differ widely by brand, so follow your router's manual or the provider's setup guide.

Making it harder to undo

The most useful add-on is friction you cannot remove in one tap. Ask a trusted person to set a screen lock or restriction code that you do not know, or use a blocker that has its own lock. For a wider plan, see: How to Stop Watching Porn: A Practical Plan.

FAQ

What is the best DNS to block porn?

Cloudflare's family DNS (family.cloudflare-dns.com) and CleanBrowsing's Adult Filter are both free options that block adult sites. They differ in extras, such as CleanBrowsing's SafeSearch enforcement. Choose one, test it, and do not stack several.

Does Private DNS slow my phone?

We have not measured it and cannot say. If you notice slowness, try the other provider or switch back to Automatic.

Can I do this on iPhone?

This guide covers Android. On iPhone, the built-in route is the Screen Time web content filter (Limit Adult Websites).

Will it block adult apps?

Only the parts that go through DNS. It filters names, not what is inside an app.

Block it for good with Mamori

A DNS setting is a good free start, and Mamori is built around the same idea with a lock added.

  • It blocks 2.5M+ adult domains across the whole phone. On Android this runs as an on-device DNS filter using Android's VPN service, with no remote VPN server, no browsing logs, and nothing uploaded. On iPhone it uses Apple's Screen Time web content filter plus its own blocklist.
  • It targets Japanese sites (JAV, hentai, doujin) that many Western blockers miss, including performer names and coded titles. On Android, search-term blocking inside apps uses an optional Accessibility service.
  • It forces SafeSearch on Google, Bing and other search engines.
  • Locks are the point: a wait, a phrase you type, or a PIN a friend keeps. With Premium, Prevent uninstall stops Mamori being deleted while protection is on.
  • By design, when protection is off, everything is off and Mamori can be uninstalled normally. The friction is the lock you set before turning it off, not a trap.

Honest limits: Android allows only one VPN at a time, so another VPN or blocker that takes the slot can switch Mamori's filter off. For a child's phone, use Screen Time or Family Link as the base layer, since Mamori is built for adults who want to block it for themselves.

Blocking is free. Premium (paid) adds longer locks, Prevent uninstall, longer phrases and exclusive animated charms. No account, no tracking.

Related guides

How to Block Porn on Your Home Wi-FiBlock porn on every device on your home Wi-Fi with a family DNS on your router. Free Cloudflare and CleanBrowsing steps, what it misses, how to lock it. Porn Blockers and VPNs: How They Interact on Android and iPhoneDoes a VPN bypass a porn blocker? It depends on how the blocker works. Android allows one VPN at a time. What that means, plus the iPhone side. How to Block JAV and Hentai SitesHow to block JAV and hentai sites: free SafeSearch, family DNS and Screen Time options, why list coverage matters, and how to add what slips through.

Sources

Last checked 11 Oct 2026. This guide is general information, not medical advice.