← Journal
Guides · by kadn · Updated September 2026 · 6 min read

How to Block Websites on Mac: Every Method

A Mac has several ways to block a distracting site, from Screen Time to the hosts file. They differ in one thing that matters most: how easily you can undo them when you most want to.

The short version
  • macOS Screen Time can block specific sites or allow only an approved list, across Safari and more.
  • The hosts file points a domain nowhere; strong but easy to undo if you know how.
  • Browser extensions are the easiest to set up and the easiest to disable.
  • Every built-in route has an off switch you control, so the real question is how hard it is to reverse.

Screen Time

macOS has Screen Time built in, the same system as on iPhone. Under Content and Privacy restrictions, you can limit adult websites or, more usefully, switch to “Allowed Websites Only” and approve a short list, which blocks everything else. It works system-wide across Safari and syncs with your other Apple devices.

It is the cleanest built-in option. The catch is familiar: if the Screen Time passcode is yours, you can lift the restriction whenever you want, which in a weak moment is a hurdle of seconds.

The hosts file

The classic power-user route is the hosts file, a system file that maps domain names to addresses. Add a line pointing a distracting site to 127.0.0.1 and the browser cannot reach it. It is strong because it works beneath the browser, blocking every browser at once.

But it has two weaknesses. It only blocks the exact domains you list, so a forgotten subdomain slips through, and undoing it is a quick edit if you know the trick. For a determined moment, the file you wrote is a file you can rewrite.

Browser extensions

The easiest route is a site-blocking browser extension. You add sites to a list, optionally on a schedule, and the extension blocks them. Setup takes a minute and the flexibility is nice. The trade-off is that an extension is as easy to disable as it was to add, and it only covers the browser it is installed in.

Switch to another browser and the block is gone. Like the others, it holds right up until the moment you decide to turn it off, which is usually the moment you most want the site.

What actually holds

The pattern is consistent: every method on a Mac has an off switch you control, whether it is a passcode, a file, or a toggle. In a calm moment that is fine. In a weak moment, an exit you hold is an exit you use, which is why these blocks so often fade after a week.

What actually keeps you out is a block you cannot switch off on impulse. That is the idea behind kadn: you decide, in a calm moment, which sites and apps are unreachable and how hard the wall is to get around, from a real pause to a lock that will not simply be clicked away. Tightening is instant; loosening waits. So the block holds precisely in the moment you would otherwise cave.

FAQ

How do I block a website on a Mac?
The built-in way is Screen Time: under Content and Privacy restrictions, limit adult sites or switch to Allowed Websites Only and approve a short list. You can also edit the hosts file to point a domain nowhere, or add a site-blocking browser extension. They differ mainly in how hard each is to undo.
Does the hosts file block websites on Mac?
Yes. Adding a line that points a distracting domain to 127.0.0.1 stops every browser from reaching it, because it works beneath the browser. Its weaknesses are that it blocks only the exact domains you list, so a forgotten subdomain slips through, and that undoing it is a quick edit if you know how.
Why do website blocks on my Mac stop working?
Because every built-in method has an off switch you control: a Screen Time passcode you set, a hosts file you can rewrite, an extension you can disable. In a weak moment, an exit you hold is an exit you use, so the block that felt solid on setup day quietly fades within a week.
How do I block websites on Mac so it actually holds?
Use a block you cannot switch off on impulse, ideally one that covers apps and sites together. A tool where tightening is instant but loosening waits keeps the sites unreachable during the times you choose, so the urge meets a wall instead of a passcode or a toggle you can flip in seconds.
Sources
  1. Apple Support. Use Screen Time on Mac and set Content and Privacy restrictions. support.apple.com
  2. Roffarello, A. M. & De Russis, L. (2019). The race towards digital wellbeing: Issues and opportunities. CHI. doi.org

A block that holds when you would cave.

kadn keeps the sites and apps unreachable on your Mac when you choose, with loosening that waits instead of caving. You choose the hardness; your calm self stays in charge.

Also on your laptop: Mac & Windows

Last updated: September 2026

Keep reading