How to block YouTube on Chrome
YouTube is hard to block cleanly because you need some of it: a tutorial for work, a lecture for class, music while you write. Blocking the whole domain works for a day, then gets switched off. A better setup decides when YouTube is open, how long for, and which parts of it pull you in.
The short answer
Install focusmode, create a group and add youtube.com. Next time you open YouTube, a calm pause covers the page and you decide whether to go on.
Block YouTube with focusmode
- Add focusmode to Chrome (free, works in Edge, Brave and Arc too).
- Open the focusmode popup, create a group called YouTube and add youtube.com. Or right-click any YouTube page and choose Add to focusmode Group.
- Pick when the group is on:
- Always. The pause shows every time.
- On a schedule. For example weekdays 9:00 to 17:30.
- After a daily limit. Open freely until you've spent, say, 30 minutes, then pause.
- Choose the pause: a living shader, hold to continue, slide, pixels, an instant stop or a breathing exercise (Pro). Mix several and focusmode rotates them.
- Want no way around it for a while? Turn on strict mode for 1 to 15 minutes: no breaks, and the group can't be edited until the time is up.
Rules you can copy
| Rule | What it pauses |
|---|---|
youtube.com | All of YouTube, including www.youtube.com |
*.youtube.com | Also m.youtube.com and music.youtube.com |
youtube.com/shorts/* | Only Shorts, if the rest of YouTube is fine |
!youtube.com/playlist* | Lets your playlists through while the rest is paused |
A line starting with ! is an exception: it's let through even when a broader rule matches.
Block YouTube without an extension
Edit your hosts file
Add 0.0.0.0 youtube.com and 0.0.0.0 www.youtube.com to the hosts file (/etc/hosts on macOS, C:\Windows\System32\drivers\etc\hosts on Windows). It blocks YouTube in every browser, needs admin rights, and is all or nothing: no schedules, no exceptions.
Use a Chrome policy
Chrome's URLBlocklist policy can block youtube.com for a profile. It's built for managed computers and shows a hard error page, so you'll be undoing it in the registry or a configuration profile when you do need a video.
Turn on break reminders
YouTube's own Remind me to take a break setting nudges you after a set time. It's a notification you can dismiss, not a block.
Why a pause works better than a wall
Most people don't need YouTube gone; they need it to stop being the default tab. Put it on a schedule (say, blocked Monday to Friday from 9:00 to 17:30), or give it a daily time limit, and let focusmode pause the page instead of hiding it. When you need a video for work, take a counted break and the pause steps aside.
Questions
Can I block YouTube only during work hours?
Yes. Give the group a schedule, for example weekdays 9:00 to 17:30. Outside those hours YouTube opens normally.
Can I still watch one video I need?
Yes. Take a break from the pause screen. Breaks are counted per day, and you can set how many each group allows. Strict mode turns breaks off when you really mean it.
Does it block the YouTube app on my phone?
No. focusmode is a desktop browser extension for Chrome, Edge, Brave and Arc.