How to Block Facebook on Mac
Facebook is the original time sink, and on a Mac it's always one tab away. Here's how to block Facebook on Mac for free: use Screen Time for a quick Safari block, edit the hosts file to cover every browser, or run a system-level focus app that blocks Facebook across your whole machine during a session. Because Facebook has no native Mac app, blocking the website blocks all desktop access.
This guide covers every method — built-in macOS tools and a stronger OS-level option — with the honest tradeoffs, so you can match the block to how much willpower you'd rather not spend.
Good news: Facebook has no Mac app
Some distractions are annoying to block because they live in a native app — Slack, Spotify, the desktop Twitter clients. Facebook isn't one of them. There's no official Facebook desktop app for macOS, so every route in goes through a browser. Block facebook.com and its subdomains and you've blocked Facebook completely on that Mac.
(One caveat: Messenger does have a Mac app. If Messenger is your specific distraction, you'd block that app separately. For the main Facebook feed, website blocking is the whole job.)
Method 1: macOS Screen Time (built in, free)
Screen Time has a built-in content filter that can block Facebook in Safari.
- Open System Settings → Screen Time.
- Click Content & Privacy and turn on Content & Privacy Restrictions.
- Go to Content Restrictions → Access to Web Content and choose Limit Adult Websites.
- Click Customize, and under Restricted, add
https://www.facebook.com.
Facebook is now blocked in Safari, and you can set a Screen Time passcode so the restriction isn't trivial to lift.
The limits: Screen Time only governs Safari. Facebook will still open in Chrome or Firefox. And since it's your machine and your passcode, you can remove the restriction whenever the urge is strong enough — which is exactly when you don't want it to be easy.
Method 2: Edit the hosts file (covers every browser)
To block Facebook across Safari, Chrome, Firefox, and Arc at once, edit your Mac's hosts file. It works below the browser, so the block is universal.
Open Terminal and run:
sudo nano /etc/hosts
Add these lines at the bottom:
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 m.facebook.com
127.0.0.1 web.facebook.com
Save with Control+O, exit with Control+X, then flush DNS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
The hosts file is free and covers every browser. Its weakness is that there's no timer and no friction — Facebook stays blocked until you reopen the file and delete those lines, which takes about thirty seconds. Nothing stops you from undoing it on impulse.
Method 3: System-level blocking with a focus app
The strongest free option blocks Facebook everywhere and ties the block to a work session instead of a permanent toggle you have to manage by hand.
The free Focuh desktop app for Mac blocks Facebook at the operating-system level during a focus session. While the session runs, Facebook is unreachable in Safari, Chrome, Firefox, and Arc simultaneously, and Focuh pairs blocking with a focus timer, a menu-bar countdown, and a task list — so the block turns on when you start working and off when you finish. Because it uses macOS Accessibility APIs rather than a Safari setting, it's harder to disable mid-session than Screen Time.
This is the method for people who keep returning to Facebook no matter how many times they "block" it. Removing every browser route at once, and binding it to a session, is what makes the block hold.
It also changes the daily friction. With Screen Time or the hosts file, you're the one deciding moment to moment whether Facebook is blocked, which means you're negotiating with yourself all day. With a session-based app, you make one decision at the start — "the next 50 minutes are for work" — and the block follows from that. You're not fighting the urge over and over; you've already answered it once.
Ways to block Facebook on Mac, compared
| Method | Free? | Covers all browsers? | Has a session/timer? | Bypass friction |
|---|---|---|---|---|
| Screen Time | Yes | No (Safari only) | No | Low |
| Hosts file | Yes | Yes | No | Low (easy to edit out) |
| SelfControl | Yes | Yes | Yes — set duration | High during a block |
| Focuh Mac app | Yes | Yes (OS-level) | Yes — focus session | High |
Laid out side by side, the choice is about how hard you need the block to be. Screen Time is quick but Safari-only. The hosts file is universal but trivial to undo. SelfControl and Focuh are the two rows that cover every browser and resist mid-session tampering — the difference being that Focuh adds a timer, tasks, and a menu-bar countdown around the block, while SelfControl is a pure timed blocker.
Why browser-only blocks keep failing for Facebook
If you've blocked Facebook in Safari and found yourself scrolling it in Chrome twenty minutes later, the method didn't fail — its scope did. A Safari-only block leaves every other browser open, and the autopilot move when you hit a wall is to open the site somewhere else.
OS-level blocking closes that door. When the block lives below the browser, there's no second browser to escape to. That's the entire case for system-level tools over browser-scoped ones. For the full breakdown, see system-level vs browser website blocking, and for blocking the rest of your feeds too, see how to block social media on Mac.
Which method should you choose?
"I just want Facebook gone in Safari and I trust myself" — Use Screen Time. Free, built in, two minutes.
"I use more than one browser" — Use the hosts file for a universal block, or a system-level app if you also want a timer.
"I keep going back no matter what" — Use system-level blocking. The free Focuh app blocks Facebook across every browser during a session and is hard to switch off mid-focus, which is the point.
Every option here is free, so start with Screen Time and step up to OS-level blocking if the casual block doesn't hold. For a wider look at Mac blockers, see the best website blockers for Mac in 2026, or download the free Focuh app to block Facebook across your whole system today.