How to Block Websites on Mac Safari
In this article
To block websites on Mac Safari, you use the built-in Screen Time feature (System Settings > Screen Time > Content & Privacy) to restrict adult sites or add specific domains to a blocklist. This works entirely on your Mac, requires no extra software, and applies to all Safari users on that Mac unless you set a Screen Time passcode. Below are the exact steps for macOS Ventura and later, with notes for older versions.
What You'll Need
- A Mac running macOS Catalina (10.15) or later (steps shown are for Ventura/Sonoma/Sequoia, but older versions use similar menus).
- An administrator account on the Mac (to change Screen Time settings).
- Optional: a Screen Time passcode to prevent others from changing the blocklist.
Step-by-Step
- Open System Settings. Click the Apple menu and choose System Settings (or System Preferences on older macOS).
- Go to Screen Time. In the sidebar, click Screen Time. If you haven't used it before, you may see a welcome screen—click Continue or Set Up.
- Open Content & Privacy. In the Screen Time settings, click Content & Privacy in the left column. If it's off, toggle it on.
- Enable Content Restrictions. Click the Content Restrictions tab (or just look for the "Content" section). You'll see options for "Access to Web Content."
- Choose a web content option. Click the dropdown next to "Web Content" and select one of these:
- Unrestricted Access – blocks nothing (default).
- Limit Adult Websites – automatically blocks many adult sites and lets you add specific sites to an "Always Allow" or "Never Allow" list.
- Allowed Websites Only – only lets Safari open sites you explicitly list; all others are blocked. This is the strictest option.
- Add sites to the blocklist. If you chose "Limit Adult Websites," click "Customize" under the "Never Allow" section. A list appears; click the + button, type the domain (e.g.,
example.com), and press Enter. Repeat for each site you want to block. If you chose "Allowed Websites Only," you'll need to add sites to the "Always Allow" list instead—everything not on that list is blocked. - Set a passcode (recommended). Back in the main Screen Time settings, click "Options" (or the lock icon) and choose "Use Screen Time Passcode." Enter a 4-digit code. This prevents anyone from changing the blocklist without the passcode. If you forget it, you'll need to reset it via your Apple ID (see Troubleshooting).
- Close System Settings. The changes take effect immediately. Safari will now block the sites you listed—when you try to visit one, you'll see a message saying it's blocked by Screen Time.
Note: Menu labels may differ slightly depending on your macOS version. On older macOS (Catalina through Monterey), the path is System Preferences > Screen Time > Content & Privacy, and the web content options are under the "Content" tab.
Common Mistakes
- Blocking the wrong domain. If you block
youtube.com, it only blocks that exact domain. Subdomains likem.youtube.comorwww.youtube.commay still work. To block all subdomains, you'd need to add each one or use a wildcard (which Screen Time doesn't support). - Forgetting to enable Content & Privacy. If the toggle is off, the web content restrictions are ignored.
- Not setting a passcode. Without a passcode, anyone can go into Screen Time and remove the block.
- Using "Allowed Websites Only" without adding any sites. That blocks everything, including your email and banking—likely not what you intended.
- Expecting it to block in other browsers. Screen Time's web content restrictions apply to Safari and most other browsers (like Chrome and Firefox) on the same Mac, but not to apps that use their own web view (e.g., some news apps).
Tips
- Use "Limit Adult Websites" as a starting point. It already blocks a large list of adult domains, and you can add your own to the Never Allow list.
- Test the block immediately. After adding a site, open Safari and try to visit it. If it loads, you may have typed the domain wrong (e.g., missing the
wwwor usinghttps://). - Block by domain, not full URL. You only need to enter the domain (like
facebook.com), not the full path (facebook.com/profile.php). - Use the "Always Allow" list to whitelist exceptions. If you block a site that contains a needed subpage (like a forum), you can't allow that subpage alone—Screen Time works at the domain level.
- Consider a Screen Time passcode even if you're the only user. It prevents accidental changes and adds a layer of friction.
Troubleshooting
The site still loads after I blocked it. First, check that you typed the domain correctly (no spaces, no https://). Then confirm that Content & Privacy is enabled and that the web content option is set to "Limit Adult Websites" or "Allowed Websites Only." If you're using "Limit Adult Websites," make sure the site is in the "Never Allow" list, not just in the "Always Allow" list. Also, try quitting and reopening Safari, as some cached pages may still show.
I forgot my Screen Time passcode. You can reset it using your Apple ID. In System Settings > Screen Time, click "Options" (or the passcode area) and choose "Forgot Passcode?" Then enter your Apple ID credentials. If you don't have an Apple ID associated, you may need to erase the Mac and restore from backup (which is drastic—try the Apple ID method first).
Screen Time is not available. Screen Time is available on macOS Catalina (10.15) and later. If you have an older macOS, you can use parental controls in System Preferences > Parental Controls, but that only works for child accounts. For a single-account Mac, consider using a third-party app or editing the hosts file (advanced, not recommended for most users).
Changes don't apply to other browsers. If you're using Chrome or Firefox, they should also respect Screen Time content restrictions. If not, make sure those browsers are updated and that you haven't disabled Screen Time for them (there's no per-app toggle for web content). If they still bypass, you may need to restrict those apps in Screen Time > App Limits, but that's a separate setting.
Frequently Asked Questions
Can I block a specific page on a site, like a forum?
No. Screen Time only blocks entire domains. You cannot block a specific path or subpage. If you block reddit.com, all of reddit is blocked.
Will this block sites in Chrome and Firefox too?
Yes, Screen Time's web content restrictions apply to all browsers on the Mac, not just Safari. However, some apps with built-in browsers (like a news app) might not be affected.
How do I unblock a site later?
Go back to System Settings > Screen Time > Content & Privacy, click "Customize" next to "Never Allow" (or "Always Allow"), select the site, and click the minus button. If you set a passcode, you'll need to enter it.
Does this work on iPhone or iPad?
Screen Time works similarly on iOS and iPadOS, but this guide is for Mac. On iPhone/iPad, go to Settings > Screen Time > Content & Privacy Restrictions > Content Restrictions > Web Content.
Can I block a site only for a specific user account?
Screen Time settings are per-Mac, not per-user, unless you use separate child accounts with parental controls. For per-user blocking, you'd need to create a child account and manage it via Screen Time.
What if I want to block adult content but allow everything else?
Choose "Limit Adult Websites" and don't add anything to the Never Allow list. Apple's built-in filter will block many adult sites automatically. It's not perfect, but it covers a large portion.