How to block websites in Safari on a Mac (2026)

Five ways to block websites in Safari on a Mac: Nudge sessions, Safari settings, Screen Time, content blockers and the hosts file, with steps and limits.

App icons of Nudge, Apple Screen Time, SelfControl, Cold Turkey, Freedom

For daily work, use Nudge: keep Safari available when it belongs in the session, block the distracting domains, and start from the menu bar. Safari's own Websites settings only quiet pop-ups, auto-play and notifications; they do not block a site. Screen Time is the built-in way to restrict websites in Safari, and the hosts file is the manual system-level route for technical users.

How do these apps compare?

Pick the right way to block websites in Safari on a Mac, and know which methods block access and which only reduce noise.

AppBest forPriceWebsite
NudgeTop pickRepeatable Safari focus sessions on a Mac$9.99 onceGet Nudge
Apple Screen TimeBuilt-in web restrictions in SafariFree, built into macOSVisit
SelfControlFree hard website blocksFreeVisit
Cold TurkeyMaximum frictionFree, Pro one-timeVisit
FreedomBlocking across Mac and iPhone$8.99/mo or $99.50 lifetimeVisit
1FocusMac-native blockingFree, Pro $9.99/yrVisit

Which tool should you pick?

Nudge

Blocks the websites and apps you pick for the length of a session, and Safari keeps working for everything else.

Apple Screen Time

Limit Adult Websites, add restricted sites or allow only approved sites in Safari.

SelfControl

A free timed website block that stays on until the timer ends.

Cold Turkey

Locked blocking modes for people who need high friction.

Freedom

The same blocklists on Mac and iPhone.

The apps in detail

  1. Nudge

    Best for: Repeatable Safari focus sessions on a Mac

    $9.99 once
    Choose it if
    Safari is needed for work and you want specific sites and apps blocked while a session runs.
    Skip it if
    You need blocking on iPhone Safari. Nudge is a Mac app.
    Download Nudge for macOS
  2. Apple Screen Time

    Best for: Built-in web restrictions in Safari

    Free, built into macOS
    Choose it if
    You want broad rules with no extra install.
    Skip it if
    You need rules that change by task, or blocking in browsers other than Safari.
    Visit Apple Screen Time
  3. SelfControl

    Best for: Free hard website blocks

    Free
    Choose it if
    You want a free timed block that is difficult to undo.
    Skip it if
    You need app blocking, presets or schedules.
    Visit SelfControl
  4. Cold Turkey

    Best for: Maximum friction

    Free, Pro one-time
    Choose it if
    You want strict, hard-to-bypass blocking modes.
    Skip it if
    You want a gentle session workflow.
    Visit Cold Turkey
  5. Freedom

    Best for: Blocking across Mac and iPhone

    $8.99/mo or $99.50 lifetime
    Choose it if
    The same sites distract you on your phone.
    Skip it if
    You only need a Mac-local session tool.
    Visit Freedom
  6. 1Focus

    Best for: Mac-native blocking

    Free, Pro $9.99/yr
    Choose it if
    You want a straightforward Mac blocker with schedules.
    Skip it if
    You need cross-device control.
    Visit 1Focus

How can you block websites in Safari?

Safari gives you useful controls, but most of them are not true blocking. Separate noise reduction from access blocking before choosing a method. The table compares the five methods in this guide.

For the whole-Mac version of this guide, see how to block websites on a Mac. If you also use Chrome, see how to block websites in Chrome on a Mac. Chrome has no built-in per-site block of its own.

MethodEffortWhich browsersEasy to undo?
Nudge sessionLowSafari and Chrome on the MacBlocked for the length of the session
Safari Websites settingsLowSafari only; reduces site behavior, does not fully block accessYes
Screen Time web restrictionsMediumSafari onlyYes, from System Settings
Content blockersMediumSafari only; removes ads and unwanted content, not focus-session blockingYes
Hosts fileHighSafari and other browsers on this Mac; may not apply with iCloud Private RelayNo, needs a manual edit and a DNS flush to undo

How do you block distracting websites in Safari with Nudge?

Safari often belongs in a focus session. You may need it for research, docs, web apps, reading, billing or writing tools. The problem is not Safari itself. The problem is that the same browser also contains news, feeds, forums, video and shopping.

Nudge is a Mac app (macOS 13+) that blocks the apps and websites you pick during a focus session. Websites are blocked in Safari and Chrome. It starts from the menu bar with presets or Quick Focus. This keeps the browser useful while narrowing the web to what the work actually needs.

  1. Create a Nudge preset for the task.

  2. Leave Safari off the block list if the session needs browser access.

  3. Add the distracting websites to the blocked list.

  4. Keep only the Mac apps that belong in the work block.

  5. Start the session from the menu bar.

What can Safari's Websites settings do?

Safari Websites settings let you manage per-site behavior such as Reader, Content Blockers, Auto-Play, Pop-up Windows and Notifications. This is useful for reducing friction and noise on sites you still need to visit.

Use this for noise control. Do not rely on it as your main focus blocker if the goal is to stop visiting a distracting site entirely.

  1. Open Safari.

  2. Choose Safari, then Settings.

  3. Open the Websites tab.

  4. Select a setting on the left, such as Pop-up Windows, Content Blockers, Auto-Play or Notifications.

  5. Choose the behavior for the current site, configured sites, or websites you have not configured yet.

Do pop-up, content and notification settings block a site?

No. Safari can block pop-up windows for a single website or all websites. It can also use content blockers to stop ads and other unwanted content where a content blocker is installed. Auto-Play settings can stop videos from starting automatically, and notification settings can deny a site's ability to send alerts.

These are valuable cleanup steps. A site with fewer pop-ups, autoplay videos and notifications is less distracting. But the site is still available, which means the habit loop may still survive.

How do you block websites in Safari with Screen Time?

Screen Time Content & Privacy settings include Safari web content levels. You can leave access unrestricted, limit adult websites and add custom restricted or allowed sites, or use Allowed Websites Only for a much stricter list. These rules apply to Safari only.

This is stronger than ordinary Safari settings, but it is still not as flexible as a work-session preset when your rules change between writing, research, admin and deep work.

  1. Open System Settings on your Mac.

  2. Open Screen Time.

  3. Go to Content & Privacy.

  4. Open App Store, Media, Web, & Games settings.

  5. Choose the Safari web content level and customize allowed or restricted sites where needed.

How do you block a website with the hosts file?

The Mac hosts file can block domains by pointing them back to your own machine. It is a system-level change, so it is not limited to Safari. The downside is maintenance: editing system files, remembering subdomains, flushing DNS, and undoing changes when the block should end.

Safari has one extra caveat. If iCloud Private Relay is on, a local hosts entry may not apply in Safari, so turn Private Relay off if the block does not work.

Use the hosts file if you are technical and want a static system-level block. Use Nudge if the rules need to change by task.

  1. Open Terminal and edit the hosts file with administrator rights.

    sudo nano /etc/hosts
  2. Add a line for each domain, pointing it at your own machine, and include the www version.

    127.0.0.1 example.com www.example.com
  3. Save the file (Control-O, then Return) and exit (Control-X).

  4. Flush the DNS cache so the change applies.

    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  5. Restart Safari. To undo the block, delete the line and flush DNS again.

How do you block websites on iPhone Safari too?

Nudge is a Mac app, so it does not block iPhone Safari. On the iPhone, the built-in route is Screen Time web content restrictions. If the same sites pull you away on your phone, a cross-device blocker such as Freedom keeps one blocklist on Mac and iPhone.

Which method should you use for Safari?

Use Safari settings to quiet websites. Use Screen Time to create broader built-in restrictions. Use the hosts file if you want manual system-level blocking and are comfortable maintaining it.

Use Nudge when Safari is needed for work but specific websites should be blocked during the session. Pick the apps and sites to block, start from the menu bar, and schedules can run presets on the days and hours you choose. Nudge costs $9.99 once for Lifetime Access, with a 7-day free trial and no card to start. If you want a timer first, there is also a free web timer at the Pomodoro timer.

FAQ

What is the easiest way to block websites on Safari for Mac?

The easiest repeatable method is Nudge: create a preset, add distracting websites and apps to block, and start the session from the Mac menu bar.

Can Safari block websites by itself?

Safari can block pop-ups, manage content blockers, control auto-play, deny notifications, and customize settings per website. For actual access blocking, use Screen Time, Nudge, or a system-level method.

Can Screen Time block websites in Safari?

Yes. Screen Time Content & Privacy settings can limit adult websites, add restricted websites, or allow only approved websites. These rules apply to Safari only.

Are Safari content blockers enough for focus?

Content blockers are useful for ads and unwanted page content. They do not replace a work-session blocker if the goal is to stop visiting distracting sites.

Does iCloud Private Relay affect a hosts-file block?

It can. With iCloud Private Relay on, a local hosts entry may not apply in Safari, so turn Private Relay off if a hosts-file block does not apply in Safari.

Can Nudge block distracting Safari sites while Safari keeps working?

Yes. Nudge blocks the distracting domains during the focus session, and Safari keeps working for everything else.

Turn the guide into a focus session

Pick the apps and websites that pull you away and start the session from the menu bar. They stay blocked until it ends. $9.99 once after 7 days free, no card to start.

Download for macOS
Nudge preset with its app list and blocked websites

Sources

How-toHow to block websites on a Mac (2026)How-toHow to block websites on a Mac in Chrome (2026)Website blockingBest website & app blockers for Mac in 2026Blocking strategyApp blocker vs website blocker for Mac: which do you need?Website blockingCold Turkey alternatives for Mac in 2026PomodoroPomodoro timer with website blocking: a Mac setup that actually helpsComparisonNudge vs Cold TurkeyFeatureWebsite and app blocking in Nudge