• Productivity •10 min read
The fastest way to block websites on a Mac is Screen Time, the free tool already built into System Settings. For a backup that works in every browser, edit the hosts file in Terminal. And for blocking that holds across all your apps and can’t be undone in a weak moment, a focus app like AppBlock does the work your willpower keeps skipping.
There’s no single right way to block websites on macOS. The best choice depends on whether you’re locking things down for a kid, killing a personal time sink, or protecting deep-work hours. Below are three methods worth knowing, from the built-in defaults to the option that actually sticks.
A randomized controlled trial had adults cut recreational screen time to under three hours a week. After just two weeks, their self-reported well-being and mood improved significantly versus the control group.
Most people never realize their Mac ships with a website blocker. Screen Time has lived in macOS since Catalina (2019), and it’s the easiest place to start, especially for parents and anyone who browses mostly in Safari.
Here’s how to block websites on a Mac with Screen Time:
One step makes the difference between a real block and a speed bump. Back on the main Screen Time page, click Lock Screen Time Settings and set a Screen Time passcode that’s different from your login password. Without it, anyone who knows the Mac’s password switches the whole thing off in seconds.
Best for: parental controls, adult content, quick limits in Safari.
Weak spots: it leans on Safari and doesn’t reliably cover Chrome, Firefox, or Edge, and a determined user can usually get around it.
Research from Gloria Mark at UC Irvine found it takes an average of 23 minutes and 15 seconds to fully return to a task after a single interruption. One “quick” detour to a feed costs far more than the few seconds it feels like.
Deeper in the system sits the hosts file, which decides where web addresses point. Send a distracting domain into a dead end here and it’s blocked in every browser at once. This method is system-wide and free, but it belongs to people comfortable in Terminal, since a wrong move can knock out internet access. Back up the file first.
Best for: advanced users who want one permanent, browser-wide block.
Weak spots: subdomains and mobile versions (starting with m.) each need their own line, there’s no scheduling, and undoing it is just a matter of deleting a line.
Mark’s later research shows the average person now spends just 47 seconds on a single screen before switching attention, down from about 2.5 minutes two decades ago. Static blocks help, but attention slips faster than any manual list can keep up with.
The two methods above share one flaw. They protect you right up until you decide to undo them, which is usually the exact moment you should be protected most.
That’s the gap a system-wide app like AppBlock closes. Instead of living in one browser or one settings panel, it works across the apps and browsers you actually use, so the rule holds whether you’re in Safari, Chrome, or somewhere else.
What makes it stick:
AppBlock runs on macOS 11.0 and later, and the core is free.
Best for: anyone breaking a real habit, protecting work hours, or setting a block a kid can’t quietly dismantle.
Two other routes come up often, and both have a ceiling.
Both can play a supporting role. Neither holds up as the main line of defense for daily focus.
Use Screen Time, built into macOS at no cost. Open System Settings › Screen Time › Content & Privacy › Content Restrictions, choose Limit Adult Websites under Web Content, then click Customize to add specific URLs to the Restricted list.
Yes, but not with Screen Time alone, which is most reliable in Safari. To block websites on a Mac across Chrome, Firefox, and other browsers, edit the hosts file in Terminal or use a system-wide app like AppBlock.
Lock it down. In Screen Time, set a Screen Time passcode different from your login password. In AppBlock, turn on Strict Mode so the block can’t be edited or canceled until the session ends.
No. None of these methods put any meaningful load on your machine – they simply stop certain addresses from loading.
Gain back control over your screen, empower your life with AppBlock.
Try for free