Blog/How to Block YouTube on Mac (2026)
block YouTubemacOSwebsite blockersystem-levelfocus

How to Block YouTube on Mac (2026)

9 min readFocuh

You open your Mac to work and end up watching a twenty-minute video about something you'll never need. Blocking YouTube on a Mac has one rule that decides whether it holds: block it at the system level, not in a single browser. The free Focuh Mac app blocks all of youtube.com across every browser at once during a focus session, so there's no second browser to escape to.

This guide covers the free ways to block YouTube on a Mac — a system-level app, the hosts file, and Screen Time — and explains why blocking it in just one browser falls apart within a day.

The fast answer

To block YouTube on a Mac, install the free Focuh desktop app, add youtube.com to your blocked sites, grant Accessibility permission once, and start a focus session. That blocks YouTube across Chrome, Safari, Firefox, and Arc at the same time, plus any YouTube web-app shortcut. There's no account and no paid tier. If you'd rather not install anything, the hosts file is the free built-in alternative, covered below.

Why one-browser blocking doesn't hold

A browser extension blocks the browser it lives in and nothing else. On a Mac you almost certainly have more than one browser — block YouTube in Chrome and Safari is one click away in the Dock, already logged in. The habit doesn't care which browser it uses; it finds the open door.

Blocking YouTube below the browser solves that. Block the domain at the system level and every browser is covered by a single block. The principle is in system-level website blocking on macOS, and the comparison is in system-level vs browser website blocking.

Method 1: Focuh Mac app (free, system-level, all browsers)

Focuh is a free macOS focus app that blocks sites and apps at the system level using macOS Accessibility APIs, tied to a focus session rather than running all day.

  1. Download the free Focuh app and install it.
  2. Add youtube.com to your blocked sites in Settings.
  3. Grant Accessibility permission when prompted — one-time setup.
  4. Start a focus session. YouTube is blocked for the duration in every browser.

Because the block is tied to a session and lives outside the browser, it's harder to switch off on impulse than a browser toggle, and it also covers a YouTube desktop or web-app shortcut. When you genuinely need a video, end the session, watch it, and restart — which keeps the feed off autopilot. The trade-off: macOS only, and a determined user can revoke Accessibility permission in System Settings.

Method 2: Edit the hosts file (free, built in)

The hosts file blocks YouTube across every browser with no extra software:

  1. Open Terminal and run sudo nano /etc/hosts.
  2. Enter your password.
  3. 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
  1. Save with Control + O, exit with Control + X.
  2. Flush DNS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.

This covers every browser for free, but blocks all of YouTube with no schedule and no timer, and you edit the file again to undo it. It suits an all-day block, not a recurring window you toggle.

Method 3: Screen Time (Safari only)

macOS Screen Time can add a content restriction for youtube.com under Content & Privacy → Content Restrictions → limit adult websites → Customize. The catch is that Screen Time's website limits only enforce in Safari. Open YouTube in Chrome, Firefox, or Arc and it loads normally, so on a multi-browser Mac it leaves the main doors open. It's worth knowing about, but it's not a full block on its own.

How the methods compare

MethodFree?All browsersHas a session/timerHard to bypass
Focuh Mac appYesYesYesMedium
Hosts fileYesYesNoMedium
Browser extensionYesOne browserVariesLow
Screen TimeYesSafari onlySchedule onlyLow

The tools that cover every browser are the system-level ones. A browser extension is fine if you truly only use one browser, but on most Macs that's not the case. For blocking YouTube on a schedule specifically, see blocking YouTube on a Mac during work hours, and for the Shorts feed in particular, how to block YouTube Shorts on Mac.

Blocking the YouTube app and the rest of the leak

YouTube on a Mac isn't only a website. You might have it saved as a web-app shortcut, or run a menu-bar player, and there's usually a cluster of related distractions right next to it — Reddit for the comments, a news tab, a music stream. Because the Focuh app blocks at the OS level, it can block apps as well as sites, so a YouTube web-app or a distracting native app goes on the same list as youtube.com.

The practical move is to block the whole cluster in one session rather than playing whack-a-mole. Add YouTube, the two or three sites you reach for when a task stalls, and any app you open to avoid work. One block, one session, and the easy escape routes are all closed at once instead of one browser tab at a time.

Why blocking YouTube is worth the friction

YouTube's recommendation engine is the most refined attention system most people interact with daily. It doesn't need you to search — it lines up the next video before the current one ends, tuned to what keeps you watching. A "quick break" turns into an hour, and the cost of refocusing afterward is larger than the break itself.

Blocking removes the choice during the hours you meant to work. The reflex to open a tab still fires when a task gets hard, but it hits a wall instead of a feed, and over a few weeks it fires less often. You still watch what you actually want — later, on purpose, outside a focus session. If YouTube is one of several leaks, add the rest to the same blocklist; the same approach covers social media, news, and streaming in one session.

Block YouTube on your Mac now

Install the free Focuh Mac app to block all of YouTube across every browser during focus sessions — about three minutes to set up, no account. If you specifically want a permanent all-browser block and don't mind Terminal, the hosts file is the free built-in route. Either way, block below the browser so there's no second tab to escape to. For the wider set of Mac options, see the best website blockers for Mac in 2026.

Ready to focus?

Block distracting sites, timebox your day, and get more done.

Download Focuh free