How to Block YouTube on a Mac or MacBook (2026 Guide)
macOS Screen Time will block YouTube in about four minutes, and for a seven-year-old that is the end of the story. For an eleven-year-old it lasts until they discover that the restriction only really bites in Safari, or that youtube-nocookie.com still loads, or that your Screen Time passcode is the same four digits as your phone.
This guide covers every method that works on a Mac — Screen Time in both blocklist and allowlist mode, the hosts file, DNS filtering, and the YouTube desktop shortcut most guides forget — with the exact menu paths for current macOS, the complete list of YouTube domains, and an honest account of where each one breaks.
This is the Mac-specific companion to our main guide on blocking YouTube on a child's computer.
Which Method Should You Use?
| Method | Time | Covers Chrome/Firefox | Bypass difficulty | Cost |
|---|---|---|---|---|
| Screen Time — Limit Adult Websites + Restricted list | 4 min | Partially | Easy–medium | Free |
| Screen Time — Allowed Websites Only | 10 min | Yes | Hard | Free |
| Hosts file | 5 min | Yes | Easy (needs admin) | Free |
| Standard (non-admin) account | 3 min | n/a — enables everything else | — | Free |
| Router / DNS filtering | 10 min | Yes | Medium | Free–low |
| Allowlist software with channel approval | 10 min | Yes | Hard | Paid |
The single most important row is the third from the bottom. Every method on this page is undone in under a minute by a child with administrator rights. Before anything else, make their account a Standard user — instructions below.
Step 1: Make the Child's Account a Standard User
Skip this and the rest of the page is decoration.
- Open System Settings > Users & Groups
- Click the ⓘ button next to your child's account
- Ensure Allow this user to administer this computer is switched off
- Confirm with your own password
On a Standard account, your child cannot edit the hosts file, cannot install filtering-defeating software, cannot change DNS settings, and cannot turn off Screen Time. On an Administrator account they can do all four. If you and your child share one login, this is the change that matters most, and everything else can wait until it is done.
Step 2: Block YouTube with macOS Screen Time
Screen Time's content restrictions apply at the system level and follow the child's account rather than a single browser.
- Open System Settings > Screen Time
- Select your child's account from the family picker at the top (if you use Family Sharing) or work directly in their login
- Turn Screen Time on if it is not already
- Open Content & Privacy and switch it on
- Open Store, Web, Siri & Game Center Content (on some versions, Content Restrictions)
- Set Access to Web Content to Limit Adult Websites
- Click Customize, and under Restricted add each of these as a separate entry:
https://www.youtube.com
https://m.youtube.com
https://youtu.be
https://www.youtube-nocookie.com
- Return to the main Screen Time pane and click Lock Screen Time Settings
- Set a passcode that is not your device passcode, your ATM PIN, or a birthday
Step 9 is not padding. The most common Screen Time failure is not a technical bypass — it is a child who watched you type the code, or guessed it in three tries because it was a family birthday.
Step 3: Use Allowlist Mode Instead (Much Stronger)
The step above is a blocklist: YouTube is blocked because you named it. Anything you did not name still loads, which includes every YouTube mirror, proxy and front-end your child finds later.
Screen Time has a much stronger mode hidden in the same menu. In step 6 above, choose Allowed Websites Only instead of Limit Adult Websites. Then add only the sites your child actually needs — school portal, homework tools, a handful of others.
This inverts the problem. Instead of guessing every site to forbid, you name the small number that are permitted, and everything else fails closed. A YouTube proxy your child discovers next month is already blocked, because it was never on the list.
The cost is real: you will spend the first week adding sites as your child hits legitimate blocks. For a child under about ten that settles down quickly. For a teenager doing open-ended research it becomes genuinely inconvenient, which is the trade our comparison of temporary versus permanent blocking works through.
Step 4: The Hosts File Method
The hosts file redirects a hostname before any request leaves the Mac, so it applies to every browser at once — Safari, Chrome, Firefox and Edge alike.
- Open Terminal (Applications > Utilities, or Command+Space and type Terminal)
- Run
sudo nano /etc/hostsand enter your admin password - Add these lines at the bottom:
127.0.0.1 youtube.com
127.0.0.1 www.youtube.com
127.0.0.1 m.youtube.com
127.0.0.1 youtu.be
127.0.0.1 www.youtu.be
127.0.0.1 youtube-nocookie.com
127.0.0.1 www.youtube-nocookie.com
127.0.0.1 youtubei.googleapis.com
- Save with Control+O, press Return, exit with Control+X
- Flush the DNS cache:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
youtubei.googleapis.com is the one most lists omit. It is the API the YouTube app and embedded players use, and leaving it open means embeds keep working after the main site is blocked.
Two limitations worth knowing. The hosts file does not support wildcards, so 127.0.0.1 *.youtube.com does nothing. And a browser using DNS-over-HTTPS skips the hosts file entirely — see the bypass section. Our hosts file guide covers the technique in more depth.
Step 5: Block the YouTube App and Shortcuts
Blocking the website leaves two routes open on a Mac.
Progressive web app shortcuts. Chrome and Edge can install YouTube as a standalone desktop app (⋮ > Cast, save and share > Install page as app). It gets its own Dock icon and its own window with no address bar. It uses the same domains, so a hosts-file or DNS block still catches it — but a Screen Time Safari-only restriction does not. Check the Applications folder and the Dock for a YouTube icon.
Other browsers. If you blocked YouTube only inside Safari's settings, downloading Firefox takes two minutes. On a Standard account your child cannot install applications, which closes this — another reason step 1 comes first.
How Kids Bypass YouTube Blocks on a Mac
- A VPN tunnels past hosts-file, router and DNS blocking in one move. On a Standard account they cannot install one; on an admin account it takes ninety seconds. See can a VPN bypass parental controls.
- DNS-over-HTTPS. Chrome and Firefox can send DNS lookups directly to Cloudflare, skipping both your hosts file and your router. Turn it off in Chrome under Settings > Privacy and security > Security > Use secure DNS, and in Firefox under Settings > Privacy & Security > DNS over HTTPS. It sometimes re-enables after updates.
- Web proxies and YouTube front-ends. Dozens of mirror sites relay YouTube content from a domain you have never heard of. This is the failure mode blocklists cannot solve and allowlists solve completely.
- Guessing the Screen Time passcode. Extremely common. Use four digits that appear nowhere else in your life.
- Recovery mode and a second account. With physical access and admin rights, a determined teenager can create a new user. Standard-account enforcement plus a firmware password is the counter.
- The phone in their pocket. Nothing on this page affects it.
Is Blocking YouTube Entirely the Right Call?
Worth pausing on, because a total block is often the wrong tool. YouTube is where a large share of homework help, tutorials and school-assigned content lives. Block it outright and you will be unblocking it manually every Tuesday evening, which is how most parents end up abandoning the control altogether.
The middle path is channel-level approval: YouTube works, but only the channels you have approved will play. Your child keeps Khan Academy and the specific creators you are comfortable with; the recommendation sidebar stops being an entry point to everything else. That is the model 3Eyes uses — see 3Eyes features — and it is also why our guide on stopping kids watching YouTube all day argues for limits over prohibition.
Frequently Asked Questions
How do I block YouTube on a MacBook specifically?
Exactly as above — there is no difference between a MacBook, MacBook Air, MacBook Pro, iMac or Mac mini. They all run macOS and use the same Screen Time and hosts file. What is different about a MacBook is that it leaves the house, so router-level blocking stops applying and the control has to live on the device.
Can I block YouTube on a Mac without software?
Yes. Screen Time and the hosts file are both built into macOS and cost nothing. Third-party software buys you channel-level approval and resistance to bypass, not basic blocking.
Why is YouTube still working after I blocked it?
Usually one of four things: the DNS cache was not flushed, the browser is using encrypted DNS, the child is on an administrator account and undid it, or you blocked youtube.com but not m.youtube.com and youtu.be.
Does Screen Time block YouTube in Chrome as well as Safari?
Screen Time's web content restrictions are system-level and do reach other browsers, but enforcement is most reliable in Safari and has historically been inconsistent elsewhere. If Chrome is your child's browser, back Screen Time up with the hosts file or DNS filtering.
How do I allow YouTube for schoolwork but not for entertainment?
Domain blocking cannot tell those apart — it is the same domain either way. You need either a time-based schedule (allowed during homework hours) or channel-level approval. Time scheduling is covered in setting a bedtime on the computer.
Related Guides
- How to block YouTube on a child's computer — the full cross-platform guide
- Parental controls for Mac — everything beyond YouTube
- Blocking YouTube with the hosts file
- Temporary vs permanent YouTube blocking
- How to stop kids watching YouTube all day
- How 3Eyes Makes YouTube Safe for Kids