Guide
How to block websites on a Mac
A Mac has two free ways to block a site built in, Screen Time and the hosts file. Both are easy to undo, which is why most people end up adding an app or an extension on top.
1. Screen Time: built in, made for Safari
In System Settings, open Screen Time, then Content & Privacy, and turn it on. Under web content, choose to limit adult websites, then use Customize to add the sites you want blocked to the Restricted list. The exact menu names change a little between macOS versions.
Screen Time's App Limits can also give a website a daily allowance instead of a full block. Set a Screen Time passcode, and ideally let someone else choose it, or the limit is one click from gone.
2. The hosts file: free, every browser
In Terminal, run sudo nano /etc/hosts, add a line like 0.0.0.0 youtube.com for each address (with and without www.), save with Control-O, and quit with Control-X.
Then run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and restart your browser. It blocks the site in Safari, Chrome and every other browser, and it's just as quick to undo.
The Chrome guides have the exact lines for 15 sites.
3. SelfControl: free, with a timer you can't stop
SelfControl is a free, open-source Mac app. Set a time, add your sites and press Start, and they stay blocked until the timer ends, even if you restart or delete the app. It's Mac only (what to use on Windows).
4. Cold Turkey: the hardest wall
Domains, URLs, wildcards, keywords, or the whole internet with exceptions. Pro blocks apps and can lock the whole computer (Frozen Turkey). Many lock types: timer, schedule, random text, delay, restart, password. Price: A free version, and a one-time price for Pro. Onus vs Cold Turkey.
5. A Chrome or Edge extension
If you live in Chrome or Edge, an extension is the easiest to set up. Onus works differently from most blockers: Onus seals the sites until you've worked for them: every 25 minutes on your work sites buys 10 minutes back, the bank holds up to 2 hours, and it resets at midnight. It runs in Chrome and Edge on a Mac like anywhere else. There's no Onus Mac app, so it covers the browser it's in.
Which to pick
- You only use Safari: Screen Time, with a passcode someone else sets.
- You want a block you can't undo: SelfControl, free.
- Apps too, or the whole computer: Cold Turkey.
- Blocks keep getting switched off: Onus, where work earns the breaks. Compare more in the best website blockers for Chrome.
SelfControl details from selfcontrolapp.com, checked 15 November 2026. Cold Turkey from getcoldturkey.com, checked 29 October 2026. Trademarks belong to their owners, and Onus isn't affiliated with any of them.
Questions
Can you block a website on a Mac without an app?
Yes. Screen Time can restrict sites and set daily limits on them, and the hosts file blocks a site in every browser. Both are built in and free.
Does Screen Time block websites in Chrome?
Screen Time's web limits are made for Safari. Check them in the browser you actually use, and if they don't hold there, use the hosts file or a Chrome extension.
What is the best free website blocker for Mac?
SelfControl is free and open source, and blocks your list until its timer ends, even if you restart. In Chrome or Edge, LeechBlock NG is free, and Onus has a free plan with 2 sealed sites.
How do I stop myself from undoing a block on my Mac?
Use something with a timer or a wait. SelfControl can't be stopped before its timer ends, Cold Turkey has many lock types, and Onus makes you wait 10 minutes to unseal a site.
More: YouTube blocker · Reddit blocker · Blocker for studying · Onus vs Cold Turkey · Onus vs StayFocusd · Onus vs LeechBlock · How to stop watching YouTube · How to stop doomscrolling · Onus vs Freedom · Onus vs BlockSite · Opal alternative for computers · How to block YouTube Shorts · Blocker for ADHD · Block sites during work hours · Blocker for employees · Stop procrastinating · How to block TikTok · Block Instagram on Android · Push-up app blocker · Block YouTube on Android · Block Snapchat on Android · App blocker for Android · Use your phone less · Screen time calculator · Block a website on Chrome · Block a website on Edge · Best website blockers for Chrome · SelfControl for Windows · Block websites on a Chromebook · The research behind Onus · Cold Turkey vs Freedom · LeechBlock vs StayFocusd · BlockSite vs StayFocusd · Freedom vs Opal · Cold Turkey vs LeechBlock · Press kit · Block websites on Windows · Block apps on Windows · Block games on a PC · Block websites on Android · Limit time on websites · Blocker with a timer · Pomodoro website blocker · Block websites at night · Stop binge-watching · Quit Reddit · All guides