• Productivity • Study • Well-being •11 min read
You already know how this goes. You open Safari to check one thing, your thumb lands on a bookmark you didn’t consciously choose, and twenty minutes later you’re on surfing on socials and sites you promised you wouldn’t go on. Blocking those time-wasting webpages keeps you accountable.
Below are five ways to do it in Safari, ordered by how most people should actually approach it the built-in route first, the un-bypassable route after, and the network-wide route for anyone covering a whole household.
Safari is not a content manager. Apple deliberately keeps site blocking out of Safari’s own settings and puts it in Screen Time, the system-level tool that governs content across the whole device. That single design decision explains most of the confusion around this topic.
It means the block you set is a device block, not a browser block. On iPhone and iPad, a Screen Time block applies to Safari and to most other browsers on the device. On Mac, it applies to the user account you set it on.
One clarification worth making, because the naming invites it: Safari’s Hide Distractions feature, added in iOS 18 and macOS Sequoia, is not a blocker. It removes individual elements from a page you’re already looking at. It does not stop the page from loading.
This is the built-in method and the right starting point for most people.

By default, the restriction screen shows an “Allow Website” link that unblocks the site in one tap which makes the whole exercise decorative. Go back to Settings → Screen Time → Lock Screen Time Settings and set a passcode. With a passcode in place, that link demands the code before it will let anything through.
Two things this method won’t do: it can’t block by keyword, only by URL, and mobile subdomains sometimes need adding separately. If you want the fuller picture of the platform’s limits, we’ve written up What AppBlock Can and Can’t Block on iPhone, most of which is really a list of what iOS allows.
Screen Time on macOS works the same way, but the block applies per user account, so it’s well suited to a shared family Mac.
As on iPhone, set a Screen Time passcode afterwards, or anyone with the Mac open can undo the whole thing in fifteen seconds.
Screen Time is built as a simple Apple feature to track hours spent on your device. It cannot effectively restrict you as you hold the passcode to break it. That’s where you need a 3rd party application to help keep yourself accountable.
AppBlock on iPhone and iPad uses Apple’s Screen Time framework to block domains in Safari, Chrome, Edge, Firefox and Brave. Its Strict Mode is the part that matters here: while a session is running, you cannot switch the block off, and you cannot delete AppBlock to get around it. Schedules let you set the block by time, day, and even location, so the restriction is already in place before the moment of weakness arrives.



The hosts file is a plain-text file your Mac checks before it queries the internet. Point a domain at your own machine and the browser has nowhere to go in Safari, Chrome, Firefox, and everything else on that Mac.
This method is free, browser-agnostic, and survives a Safari reinstall. It also takes exactly as long to undo as it did to set up, but it does nothing for iPhone or iPad, where there’s no accessible hosts file.
Router-level and DNS-level blocking stops a domain before it reaches any device on your network. Configure a filtering DNS service in your router’s admin panel, or add the site to your router’s blocklist directly, and Safari on every iPhone, iPad and Mac in the house stops loading it.
The trade-off is coverage in both directions: it protects the whole network, and it stops protecting the moment a phone leaves the Wi-Fi and switches to cellular data.
| Method | Devices | Difficulty | Survives determined effort |
| Screen Time | iPhone, iPad, Mac | Easy | No, can easily bypass |
| AppBlock | iPhone, iPad, Mac | Easy | Yes |
| Hosts file | Mac only | Medium | No, admin can edit it back |
| Router / DNS | Every device on the network | Hard | Yes, but only on that network |
A block fails for one of three reasons: no passcode, so it can be tapped away; only the desktop URL was added, so the mobile subdomain still loads; or the site opens inside another app’s built-in browser, which Screen Time’s Safari-level filtering doesn’t reach.
AppBlock is an app and website blocker for iOS, Android and desktop browsers, built for the case where the person you’re restricting is yourself. On iPhone and iPad it blocks websites in Safari, runs on schedules you set once, and uses Strict Mode to make quitting harder than continuing, including preventing you from deleting the app mid-session.
If you’re setting this up across more than Safari, AppBlock for iOS covers apps and browsers together.
Go to Settings → Screen Time → Content & Privacy Restrictions → App Store, Media, Web, & Games → Web Content. Choose Limit Adult Websites, then tap Add Website under Never Allow and enter the URL. Set a Screen Time passcode afterwards, or the block can be lifted from the restriction screen in one tap.
On a Mac, yes. Editing the hosts file at /etc/hosts blocks a domain in Safari and every other browser on that machine, and blocking at your router or DNS covers every device on the network. On iPhone and iPad there is no hosts file, so the alternatives are a blocker app or network-level filtering.
Usually yes. Screen Time’s web content restrictions work at the system level, so they apply to Safari and most other browsers on the device. The gap is browsers built into other apps, tapping a link inside a social app often opens an in-app browser that the restriction doesn’t reach.
Nothing on iOS is permanent, but you can make undoing it deliberately difficult. Set a Screen Time passcode you don’t memorise, or use a blocker with a locked mode. AppBlock’s Strict Mode keeps the block active for the length of the session and prevents the app from being deleted to escape it.
No. Screen Time’s Never Allow list accepts specific URLs only, so each site has to be added individually, and mobile subdomains sometimes need adding separately.
Three common causes. The mobile version of the site uses a different subdomain that isn’t on your list. Someone tapped Allow Website on the restriction screen because no Screen Time passcode was set. Or the page is opening inside another app’s built-in browser rather than in Safari.
On iPhone, Screen Time can restrict the Safari app directly, and AppBlock can select Safari from its blocklist using the in-app search. Be aware that blocking Safari entirely overrides any keyword blocking you’ve configured, since there’s no browser left for the keywords to filter.
Apple Inc. (2026). Block apps, app downloads, websites, and purchases on iPhone. Retrieved August 10, 2026, from https://support.apple.com/guide/iphone/block-apps-app-downloads-websites-purchases-iph3ff83f3b1/ios
Apple Inc. (2026). Change App Store, Media, Web, & Games settings in Screen Time on Mac. Retrieved August 10, 2026, from https://support.apple.com/guide/mac-help/mchlbcf0dfe2
Gain back control over your screen, empower your life with AppBlock.
Try for free