How to Block YouTube on Mac for Studying (3 Methods Compared)

You sit down to study, open your laptop, and 45 minutes later you're watching a video about how they make pencils. Browser extensions are easy to disable when willpower runs out. You need something that blocks YouTube at the system level, across every browser and app.

Here are three ways to block YouTube on macOS. Choose the level of commitment you need.


Option 1: Browser Extension
Free

Extensions like BlockSite or LeechBlock let you add YouTube to a block list inside your browser. Quick to set up, but just as quick to turn off when temptation strikes.

Pros
  • Free and easy to install
  • Scheduling options
Cons
  • Too easy to disable or bypass
  • Only works in one browser
  • Switch to another browser = unblocked
Option 2: macOS Screen Time
Built-In

macOS Screen Time (System Settings → Screen Time → App Limits) lets you set daily time limits for websites. It works across Safari but has limited support in other browsers.

Pros
  • Built into macOS, no install needed
  • Time-based limits
Cons
  • Primarily Safari only
  • Easy to override with your passcode
  • No system-wide DNS blocking
Option 3: The Sane Way
$6.99 One-Time

SaneHosts blocks YouTube at the system level using your Mac's hosts file. Every browser, every app, even embedded YouTube players. The Focus Mode protection level includes social media and video distractions out of the box.

Why it wins
  • Focus Mode: Blocks social media and video sites with one click
  • System-Wide: Works in Safari, Chrome, Firefox, and all apps
  • Admin Auth Required: Can't impulsively disable it
  • Profiles: Switch between "Study" and "Free Time" configs
Get SaneHosts — $6.99

Compatible with macOS 14 (Sonoma) and later.