Block YouTube with DNS Filtering on Your Home Wi-Fi

Which DNS filters actually block YouTube (most free ones don't), how to set one on your router, and how to stop kids bypassing it with secure DNS or a VPN.

Last updated: 28 October 2026ยท
Difficulty๐Ÿ”จ๐Ÿ”จ๐Ÿ”จ
Free
Bypass risk๐Ÿน๐Ÿน๐Ÿน๐Ÿน๐Ÿน

Yes, DNS filtering can block YouTube on every device on your home Wi-Fi, but only if you pick a filter that lets you add your own blocked domains. The popular free "family" filters (CleanBrowsing Family and OpenDNS FamilyShield) do not block YouTube. For a full block, use NextDNS, OpenDNS Home or Pi-hole, set it on your router, then close the secure DNS loophole in browsers.

What Is DNS Filtering?

When your child types youtube.com into a browser, their device asks a DNS server to translate that name into an IP address, like a phone book lookup. Normally this returns YouTube's real IP.

A filtering DNS server works differently. When asked for youtube.com, it returns nothing, or the address of a "blocked" page. The device never reaches YouTube because it never gets the address.

The big win: change the DNS on your router once, and every device in your home is covered: phones, tablets, smart TVs, game consoles, laptops. No fiddling with each device.

๐Ÿ“ก

What DNS filtering blocks and doesn't block

Blocks: YouTube on home Wi-Fi, regardless of device, browser, or app (as long as the device uses your router's DNS).

Doesn't block: YouTube on mobile data (4G/5G). The phone ignores your home DNS once it's off Wi-Fi. For mobile data, combine with device-level controls (Screen Time, Family Link).

Which Free DNS Filters Actually Block YouTube?

This is where a lot of guides get it wrong, so here's the short version:

| Service | Blocks YouTube outright? | What it does with YouTube | Account needed | |---|---|---|---| | CleanBrowsing Family Filter | No | Forces YouTube Restricted Mode and SafeSearch | No | | OpenDNS FamilyShield | No | Nothing (adult content only) | No | | OpenDNS Home | Yes, if you add it | Block YouTube as a custom domain | Yes (free) | | NextDNS | Yes | One-tap YouTube block, or Restricted Mode | Yes (free tier) | | Pi-hole | Yes | Add YouTube domains to the Denylist | Self-hosted |

Sources: CleanBrowsing filters, Cisco: Understand OpenDNS FamilyShield, NextDNS pricing.

If what you really want is "YouTube, but cleaned up", CleanBrowsing Family is a fine, no-account option. If you want YouTube gone, keep reading.

Option 1: NextDNS (Free Tier + Paid, Easiest Full Block)

NextDNS gives you a personal DNS filter with a dashboard. The free plan covers 300,000 queries a month. Go over that and NextDNS keeps answering but stops filtering until the next month, so YouTube quietly comes back. Pro is US$1.99 a month or US$19.90 a year with no cap (NextDNS pricing).

Create a NextDNS account

Go to nextdns.io and create a free account. You'll get a configuration ID (e.g. abc123).

Block YouTube

In the dashboard, open Parental Control and add YouTube under websites, apps and games. You can also add youtube.com and youtu.be to the Denylist. If you'd rather keep YouTube but filtered, turn on YouTube Restricted Mode in Parental Control instead.

Copy your setup details

The Setup tab shows the addresses for your profile, including IPv4 addresses for your router (you may need to link your home IP for these to work) and a DNS-over-TLS hostname for phones.

Set on your router

Enter your NextDNS addresses in your router's DNS settings using the steps in the router section below.

Cover devices that leave the house

Install the NextDNS app on your child's phone or tablet, or use Android Private DNS with your NextDNS hostname. This keeps filtering on over mobile data. Full walkthrough: Block YouTube with NextDNS.

Option 2: OpenDNS Home (Free, Account Needed)

OpenDNS Home is Cisco's free, customisable service. You set your router to 208.67.222.222 / 208.67.220.220, register your home network in the dashboard, and add YouTube domains to the block list. Because OpenDNS recognises your network by its public IP, you need to keep that IP updated if it changes. Step-by-step: Block YouTube with OpenDNS.

Option 3: Pi-hole (Self-Hosted)

If you like tinkering, Pi-hole runs on a Raspberry Pi or a spare computer and blocks whatever you tell it to, with no query limits. More setup, more control: Block YouTube with Pi-hole.

How to Set DNS on Your Router

Log into your router admin panel

Open a browser and go to 192.168.0.1 or 192.168.1.1. If neither works, check the sticker on your router. Many newer routers are managed from a phone app instead. Log in with your admin username and password (often printed on the sticker).

Find DNS settings

Look for WAN Settings, Internet Setup, or Advanced โ†’ DHCP. The exact location varies by brand. Common paths:

  • ASUS: Advanced Settings โ†’ WAN โ†’ DNS Server
  • TP-Link: Advanced โ†’ Network โ†’ Internet โ†’ DNS
  • Netgear: Advanced โ†’ Setup โ†’ Internet Setup โ†’ DNS
  • D-Link: Setup โ†’ Internet Connection โ†’ DNS Servers

Can't find it? See the generic router guide.

Enter your filter's DNS addresses

Replace the existing primary and secondary DNS with the addresses from your chosen service. Don't leave your ISP's DNS or 8.8.8.8 as a secondary, or devices will happily use that instead. Save and restart your router.

Test it

On a device connected to your Wi-Fi, try youtube.com in a browser and the YouTube app. Both should fail to load. If the browser still works, it's probably using secure DNS (see below).

Setting DNS Per-Device (Without Touching the Router)

If you can't change the router (rental, ISP-locked modem), set filtering DNS on each device instead.

iPhone / iPad

Settings โ†’ Wi-Fi โ†’ tap โ“˜ next to your network โ†’ Configure DNS โ†’ Manual โ†’ add your filter's addresses. This only applies to that Wi-Fi network. For all networks, use the filter's app (NextDNS has one) or a configuration profile.

Android

The best option is Private DNS, which works on Wi-Fi and mobile data: Settings โ†’ Network & Internet โ†’ Private DNS โ†’ Private DNS provider hostname โ†’ enter your filter's hostname (for example your [id].dns.nextdns.io address, or family-filter-dns.cleanbrowsing.org if Restricted Mode is enough). Menu names vary a little by phone brand.

Windows PC

Settings โ†’ Network & Internet โ†’ Wi-Fi or Ethernet โ†’ your connection โ†’ DNS server assignment โ†’ Edit โ†’ Manual โ†’ enter the filtering DNS addresses.

Mac

System Settings โ†’ Network โ†’ your connection โ†’ Details โ†’ DNS โ†’ add filtering addresses and remove the others.

How Do Kids Get Around DNS Filtering?

๐Ÿน

How Kids Bypass This

Switching to mobile data: DNS filtering on the router only works on your home Wi-Fi. On 4G/5G, the phone uses the carrier's DNS. Fix: set the filter on the device too, and use Screen Time or Family Link.

Manually changing DNS on the device: If they find the DNS settings, they can switch to Google DNS (8.8.8.8) or set their own Android Private DNS. Lock settings with Screen Time or Family Link, and consider blocking outbound DNS at the router (see below).

Browser secure DNS (DNS over HTTPS): Chrome, Edge and Firefox can send DNS over HTTPS straight to Google, Cloudflare or another provider, skipping your router completely. In Chrome: Settings โ†’ Privacy and security โ†’ Security โ†’ Use secure DNS (turn it off, or pick your filter as the provider). In Firefox: Settings โ†’ Privacy & Security โ†’ DNS over HTTPS โ†’ Off. Firefox's automatic DoH also backs off if your network blocks the canary domain use-application-dns.net, but that doesn't apply when someone has switched DoH on manually (Mozilla).

VPNs: A VPN bypasses DNS filtering entirely by encrypting all traffic. Block VPN app installs via Screen Time or Family Link. NextDNS and CleanBrowsing also block many VPN and proxy domains.

๐Ÿ”จ

Counter-Measures

Block external DNS at the router: Routers with firewall rules (ASUS, Ubiquiti, pfSense, OPNsense, Firewalla) can block all outbound DNS on port 53 except to your chosen filter, or redirect it. This stops anyone switching to 8.8.8.8. It doesn't stop DNS over HTTPS, which uses normal HTTPS on port 443, so pair it with the browser settings above and device-level locks.

Combine with device-level controls: DNS filtering plus Screen Time or Family Link is a much stronger combination than either alone. One covers the house, the other covers the device everywhere.

Use NextDNS for visibility: NextDNS logs every query, so you can see what was blocked, from which device, and when. A device that suddenly goes quiet in the logs has probably found a way around you.

Want a personalised plan?

Answer 5 questions and get a guide for every device your child uses.

Take the Quiz โ†’
Take the Quiz โ†’