How to Block YouTube on Mac During Work Hours
YouTube is the single most common distraction people want to block during work hours. Not because it's the worst website on the internet, but because it's uniquely engineered to keep you watching. You check one thing — a tutorial, a music video, a quick clip someone sent you — and forty minutes later you're watching a stranger organize their garage.
Here's every method for blocking YouTube on your Mac, from the simplest to the most robust, with honest pros and cons for each.
Method 1: macOS Screen Time (Built-in, Free)
macOS has a built-in content restriction system that can limit YouTube access.
Setup steps:
- Open System Settings > Screen Time
- Turn on Screen Time if it's not already enabled
- Click App & Website Activity, then turn it on
- Go to App Limits > click the + button
- Expand the Websites category and add
youtube.com - Set the time limit to 0 minutes (or 1 minute)
- Click Done
Pros:
- Built into macOS, nothing to install
- Free
- Can also limit the YouTube app if installed
Cons:
- Only works in Safari — Chrome, Firefox, Arc, and other browsers are completely unaffected
- Has a "one more minute" button that instantly bypasses the limit
- You can turn off Screen Time entirely with your password
- No timer integration — it's always-on or always-off based on schedule
- Designed for parental controls, not adult self-discipline
Verdict: Fine as a gentle nudge for Safari users. Not real blocking.
Method 2: Browser Extension (Free)
Install an extension that blocks YouTube within a specific browser.
For Chrome: Install BlockSite or StayFocusd from the Chrome Web Store.
For Firefox: Install LeechBlock NG from Firefox Add-ons.
For Safari: Options are limited. 1Blocker has some blocking capability.
Setup is straightforward: Install the extension, add youtube.com to the blocklist, set your blocking schedule.
Pros:
- Easy to install
- Most are free
- Some have scheduling features (block during work hours, allow evenings)
Cons:
- Only works in one browser — switch browsers and YouTube is accessible
- Can be disabled in seconds (click the extension icon > disable)
- Many extensions don't work in incognito/private mode by default
- You need to install a separate extension in each browser you use
Verdict: Good enough if you only use one browser and have moderate self-control. Too easy to bypass for serious blocking needs.
Method 3: Edit the Hosts File (Free, System-Level)
The hosts file is a system file that maps domain names to IP addresses. By pointing YouTube's domain to your own machine, you block it across all browsers and applications.
Setup steps:
- Open Terminal (Applications > Utilities > Terminal)
- Type:
sudo nano /etc/hosts - Enter your Mac password when prompted
- Add these lines at the bottom of the file:
127.0.0.1 youtube.com
127.0.0.1 www.youtube.com
127.0.0.1 m.youtube.com
127.0.0.1 youtube-nocookie.com
127.0.0.1 youtu.be
- Press Control + O to save, then Control + X to exit
- Flush the DNS cache:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
YouTube is now blocked in every browser on your Mac.
To unblock: Repeat the process and delete the lines you added.
Pros:
- Works across all browsers and apps
- Free
- No software to install
- Hard to bypass impulsively (requires Terminal and sudo access)
Cons:
- Manual process — no scheduling or timer integration
- Blocks all of YouTube, including legitimate tutorial/learning content
- You need to be comfortable with Terminal
- Changes persist until you manually undo them
- Embedded YouTube videos on other sites will also break
Verdict: Effective and free. Good if you want a permanent or semi-permanent block and don't mind using Terminal.
Method 4: SelfControl App (Free, System-Level)
SelfControl is a free, open-source macOS app that blocks websites by modifying your hosts file and firewall rules. Its standout feature: once a block is set, it cannot be removed until the timer expires — not even by restarting your computer, deleting the app, or rebooting in safe mode.
Setup steps:
- Download SelfControl and install it
- Add
youtube.comto the blocklist - Set the timer duration (15 minutes to 24 hours)
- Click Start
That's it. YouTube is blocked and there's no going back until the timer runs out.
Pros:
- Completely free and open-source
- Truly irreversible blocking — the nuclear option
- Works across all browsers
- Simple interface
Cons:
- No scheduling — you manually start each block session
- No task management or productivity features
- Irreversibility can be a problem if you legitimately need to access a blocked site
- Interface is minimal and dated
- Only blocks websites, not native apps
Verdict: The best free option if you need blocking you genuinely cannot bypass. The irreversibility is both its greatest strength and its biggest limitation.
Method 5: Focuh (Free, System-Level + Timer + Tasks)
Focuh is a free macOS focus app that combines system-level website and app blocking with a focus timer and task management.
Setup steps:
- Download Focuh and install it
- Add
youtube.comto your blocked sites list in Settings - Grant Accessibility permission when prompted (one-time setup)
- Start a focus session — YouTube is blocked for the duration
Pros:
- Free
- System-level blocking across all browsers (uses macOS Accessibility APIs)
- Can also block native apps, not just websites
- Timer integration — blocking is tied to focus sessions, not always-on
- Task board for planning what to work on during each session
- Google Calendar sync
- Live timer countdown in the menu bar
Cons:
- macOS only — no Windows or Linux support
- Blocking can technically be disabled by revoking Accessibility permission in System Settings
- Relatively new app compared to established tools
Verdict: Best option if you want YouTube blocking that's integrated with a focus timer and task system. The fact that it's free and system-level makes it a strong default choice.
Method 6: Cold Turkey Blocker (Paid, System-Level)
Cold Turkey is a paid blocker ($39 one-time) that offers the most comprehensive blocking features on macOS, including locked blocks that can't be disabled.
Setup steps:
- Download Cold Turkey Blocker and install it
- Create a blocklist and add YouTube
- Schedule blocks or start them manually
- Optionally enable "locked" mode to prevent disabling
Pros:
- Extremely difficult to bypass in locked mode
- Detailed scheduling (block during work hours, allow evenings and weekends)
- Can block apps, websites, and even the entire internet
- Works across all browsers
Cons:
- $39 one-time purchase for full features
- Free version is very limited
- Can feel overly restrictive
- No task management or integrated timer
Verdict: The most powerful blocking tool if you're willing to pay. Best for people who have tried other methods and keep finding ways to bypass them.
Which Method Should You Use?
If you need a quick, free solution: Edit the hosts file. It's effective, system-level, and requires no software.
If you need blocking you literally cannot bypass: SelfControl. The irreversibility is the point.
If you want blocking integrated with a focus workflow: Focuh. Timer + blocker + task board in one free tool.
If you've tried everything else and keep bypassing it: Cold Turkey with locked mode. It's the highest-friction option available.
If you just want a gentle reminder: A browser extension. But be honest with yourself about whether a gentle reminder is enough.
The Real Problem Isn't YouTube
YouTube is the symptom. The underlying issue is that your brain is seeking stimulation, and YouTube is the lowest-effort source of dopamine available. Block YouTube without addressing the root cause and you'll migrate to Twitter, Reddit, or TikTok.
The most effective approach is to block all your common distractions simultaneously during focus sessions, not just YouTube. Whatever method you choose, add your other time-sink sites to the same blocklist. The goal is to make your actual work the most interesting thing available to your brain — and that requires removing all the easy alternatives, not just one.