Block Websites for All Browsers on Android – Simple Guide
In this article
Yes, you can block websites for all browsers on Android by setting a private DNS that uses a content‑filtering service or by installing a reputable DNS‑filtering app.
What You’ll Need
- An Android phone or tablet running Android 9 (Pie) or newer (private DNS is available from Android 9 onward).
- Internet access to download any required app.
- A DNS provider that offers content filtering, such as Cloudflare 1.1.1.1 for Families, Quad9, or CleanBrowsing.
- If you prefer an app‑based solution, the official "DNS Changer" or "Blokada" app from the Google Play Store.
Step‑by‑Step
- Open Android Settings. Pull down the notification shade, tap the gear icon, or find the Settings app in your app drawer.
- Navigate to Network & Internet. On some devices the label may be "Connections" or "Wi‑Fi & internet".
- Select Advanced > Private DNS. If you do not see "Private DNS," your device may be running a version older than Android 9; in that case skip to the app‑based method described later.
- Choose "Private DNS provider hostname". This option lets you enter a hostname that points to a DNS‑over‑TLS server that filters content.
- Enter the filtering provider’s hostname. For example:
- Cloudflare Families:
family-filter-dns.cloudflare-dns.com - Quad9 Secure (malware‑only, no adult filter):
dns.quad9.net - CleanBrowsing Adult Filter:
adults-filter-dns.cleanbrowsing.org
- Cloudflare Families:
- Confirm the change. Android will display a brief message that the private DNS is active. All network traffic, including Chrome, Firefox, Edge, Opera, and any other browser, now passes through the chosen DNS server.
- Test the block. Open any browser and try visiting a site that should be filtered (e.g.,
exampleadultsite.com). You should see a DNS error or a block page from the provider. - Optional – Fine‑tune with an app. If you need per‑site whitelisting or more granular control, install a reputable DNS‑filtering app like "Blokada" from the Play Store. Open the app, enable the built‑in DNS filter, and follow the on‑screen prompts to select a filtering profile.
- Restart browsers (optional). Most browsers pick up the new DNS automatically, but closing and reopening them guarantees the change takes effect.
Common Mistakes
- Using the wrong DNS hostname. Typing a typo or using a non‑filtering hostname (e.g.,
1.1.1.1instead of the family filter) will leave the device unfiltered. - Confusing Private DNS with Wi‑Fi DNS settings. Private DNS works system‑wide, while Wi‑Fi DNS entries only affect the selected network. Changing one and expecting the other to work leads to inconsistent blocking.
- Expecting instant block on cached sites. Browsers cache DNS lookups; you may need to clear the cache or restart the browser to see the block immediately.
- Relying on a single DNS provider for all content types. Some providers filter only malware, not adult content. Choose a provider that matches the type of content you want to block.
Tips
- Set the DNS provider to a family‑oriented profile if you want both adult‑site and malware protection.
- Combine DNS filtering with Android’s built‑in "Digital Wellbeing" or "Family Link" for time‑based restrictions.
- Keep the DNS hostname handy; you may need to re‑enter it after a system update or when switching carriers.
- If you travel and use public Wi‑Fi, the private DNS configuration remains active, so you retain protection on any network.
- For devices that cannot use Private DNS (Android 8 or older), use a third‑party app that creates a local VPN to route DNS queries through a filtering server.
Troubleshooting
1. No "Private DNS" option appears. Your device is likely on Android 8 or earlier. Install a reputable DNS‑filtering app that uses a local VPN (e.g., Blokada) and enable its DNS filter.
2. Websites still load despite the filter. Try the following:
- Restart the device to ensure the new DNS settings are applied.
- Clear the browser cache: Settings > Apps > [Browser] > Storage > Clear cache.
- Verify the DNS hostname: Settings > Network & Internet > Private DNS. Re‑enter the hostname and tap Save.
- Run a DNS leak test (search "dns leak test" in a browser) to confirm your queries go to the filtering provider.
3. You receive a "DNS server not responding" error. This usually means the hostname is incorrect or the provider is temporarily unreachable. Double‑check the spelling and try a different provider.
4. Some apps bypass the DNS filter. Certain apps use hard‑coded IP addresses or their own DNS resolvers. In those cases, the only reliable solution is a firewall‑type app that blocks traffic by domain, which requires root access—something we do not recommend for non‑technical users.
5. After a system update the block stops working. System updates can reset Private DNS to "Off." Repeat steps 1‑5 in the main guide to re‑enable the filter.
Frequently Asked Questions
Can I block a single website instead of using a whole filter?
Android’s native Private DNS works at the resolver level, so it cannot block individual domains. For per‑site blocking you need a third‑party app that supports custom blocklists, such as Blokada, which lets you add specific URLs to a deny list.
Will this method affect my mobile data usage?
No. DNS filtering only changes how domain names are resolved; it does not add extra data usage beyond the normal DNS queries, which are tiny.
Do I need to be connected to Wi‑Fi for Private DNS to work?
No. Private DNS operates on all network interfaces, including cellular data, so the block works wherever you have internet access.
Is it possible to unblock a site temporarily?
Yes. You can switch the Private DNS setting back to "Off" or to a non‑filtering hostname, test the site, then revert to the filtering hostname. Remember to switch back to maintain protection.
Will using a DNS filter slow down my browsing?
Modern DNS‑over‑TLS services are optimized for speed, and the latency added is typically a few milliseconds—generally unnoticeable for everyday browsing.
Do these DNS filters keep logs of my browsing?
Reputable providers such as Cloudflare and CleanBrowsing state they do not log personal query data. Review the provider’s privacy policy before committing if privacy is a concern.