How to Block Websites on Safari (iPhone, iPad & Mac): 2026 Ultimate Guide

People block websites on Safari for all kinds of reasons — protecting kids from harmful content, cutting out distractions, or setting firmer browsing limits are the big three. Apple gives you built-in tools to do it, and they’re pretty straightforward to use. But for many people, they only go so far.

Different challenges call for different fixes — so we’ve got options. We’ll cover Apple’s built-in Screen Time controls, automatic adult content filtering, and advanced options like DNS filtering, router-level blocks, and the Mac hosts file — all the way up to restrictions that are genuinely hard to bypass. iPhone, iPad, and Mac included.

In short: To block websites on Safari, enable Screen Time on your iPhone, iPad, or Mac and restrict web content by adding specific domains or using built-in filtering. For stronger, harder-to-bypass protection, use DNS filtering, router-level blocking, Safari content controls, or edit the Mac hosts file.

At a Glance: The Best Ways to Block Websites on Safari

MethodDeviceBest ForProtection LevelNotes
Screen TimeiPhone, iPad, MacParental controls & light self-controlHigh (with secure passcode)Built-in Apple feature with blacklist and whitelist modes, can be disabled with a passcode
Safari Content BlockersMacPer-site Safari controlMediumBrowser-level only, doesn’t block other browsers or apps
Browser ExtensionsMacProductivity & distraction controlMediumEasy to disable, best for intentional self-control
Focus ModeiPhone, iPad, MacTime-based distraction reductionLowNot true blocking, limits notifications/apps only
Hosts File EditingMacAdvanced local restrictionVery highSystem-level blocking, requires admin access to change
DNS Filtering (Device or Network Level)iPhone, iPad, Mac, and all devices connected to the configured networkStrong filtering across appsVery highBlocks domains before they load, harder to bypass, can work across devices
Router-Level BlockingAll devices on WiFiHousehold-wide enforcementVery highApplies to every device connected to the configured WiFi, requires router access to change
MDM (Mobile Device Management)Managed devicesCentralized device controlEnterprise-levelAdmin-enforced policies, very difficult to bypass

For most Apple users, Screen Time is entirely sufficient. But for stricter control, DNS filtering and router-level blocking offer higher levels of protection.

How to Block Websites on Safari on iPhone

In short: Use Screen Time to block specific websites (blacklist), automatically filter adult content, or allow only approved websites (whitelist). Always set a passcode to prevent unauthorized changes.

The primary way to block websites on Safari on your iPhone is through the built-in Screen Time feature. It applies system-wide, so it will restrict content across all browsers on your device, not just Safari.

Screen Time itself offers two main restriction models: Blacklist mode (block specific websites) and Whitelist mode (allow only approved websites). 

Here’s how each works.

Turn On Screen Time and Set a Passcode

Before you start blocking websites, make sure Screen Time is on and protected by a passcode.

  1. Go to “settings”
  2. Scroll down and tap “Screen Time”
  3. Tap “turn on app & website activity”
  4. Choose if it’s your device or your child’s
  5. Tap “lock screen time settings”
  6. Set a unique passcode (don’t reuse your device unlock code)

Setting a dedicated passcode is essential as, without it, anyone will be able to disable restrictions.

Blacklist Method

If you only want to block specific websites, like a social media site, you can use the Limit Adult Websites mode and add the site to the Never Allow list.

Steps:

  1. Go to “settings”
  2. Scroll down and tap “Screen Time”
  3. Turn on the “Content & Privacy Restrictions” feature
  4. Tap “App Store, media, web & games”
  5. Go to “web content”
  6. Choose “limit adult websites”
  7. Scroll down to “never allow”
  8. Tap “add website”
  9. Enter the full URL.

That domain is now blocked on your whole device. This is a good way to eliminate distractions if you have problems staying away from specific websites or need to avoid certain activities entirely.

Whitelist Method

For the strongest possible restriction, typically used for young children, you can choose the Only Approved Websites mode.

Steps:

  1. Go to “settings”
  2. Scroll down and tap “Screen Time”
  3. Turn on the “Content & Privacy Restrictions” feature
  4. Tap “App Store, media, web & games”
  5. Go to “web content”
  6. Choose “only approved websites.”

Once selected, you can add websites to approve domains one-by-one. This mode provides great protection for elementary-school-aged children, school-issued devices, and highly-controlled browsing environments. At the same time, it’s not practical for productivity use, as every required website must be added by hand.

How to Block Adult Websites on Safari (Automatic Filtering)

If you seek broader protection, especially for parental control, use the Limit Adult Websites feature with automatic filtering.

Steps:

  1. Go to “settings”
  2. Scroll down and tap “Screen Time”
  3. Turn on the “Content & Privacy Restrictions” feature
  4. Tap “App Store, media, web & games”
  5. Go to “web content”
  6. Choose “limit adult websites.”

With this mode on, your device uses Apple’s internal filtering system to recognize and block known adult domains. This way, you don’t have to enter each site manually. But you can still add extra domains under Never Allow for additional protection (see above).

This feature can be useful for teenagers’ devices, shared family iPhones, and general content filtering.

How to Sync Restrictions Across Devices

If you are signed into the same Apple ID on multiple devices, you don’t need to set up each device individually. Instead:

  1. Go to “settings”
  2. Scroll down and tap “Screen Time”
  3. Enable “share across devices.”

This way, if you set restrictions on your iPhone, you will also enable them on your iPad and/or Mac.

Can You Permanently Block a Website on iPhone?

Nothing is technically permanent, as everything can be reversed with the Screen Time passcode. However, you can make blocks harder to bypass by:

  • Using a unique Screen Time passcode
  • Not sharing the code
  • Having a trusted person set the code for you (for productivity purposes).

If you need more durable protection than Screen Time allows, you can turn to DNS filtering or router-level blocking (covered later in this guide).

How to Block Websites on Safari on iPad

Blocking websites on Safari on an iPad follows the same Screen Time path as on iPhone (see above).

The same three modes apply:

  • Unrestricted
  • Limit Adult Websites
  • Only Approved Websites.

Sync Restrictions Across Devices

As mentioned above, if you use multiple Apple devices, you can sync the restrictions across them.

  1. Go to “settings”
  2. Scroll down and tap “Screen Time”
  3. Enable “share across devices”

All you need to remember is to sign in with the same Apple ID. This is a useful solution for families.

You may also be interested in: How to turn on Safari’s private browsing on iPad.

How to Block Websites on Safari on Mac

In short: On Mac, you can use Screen Time for simple control, manage Safari-level content blockers, edit the hosts file for system-level blocking, or use productivity extensions or Focus Mode.

When it comes to restricting website access on Safari on your Mac, you have a few options:

  1. Screen Time (easy, system-wide, built-in)
  2. Safari content blockers (easy, browser-level control)
  3. Hosts file editing (advanced)
  4. Safari extensions (productivity-focused; easy)
  5. Focus Mode (easy, time-based restriction).

Method 1: Screen Time on Mac

MacOS includes the same Screen Time feature as iOS and iPadOS.

Steps:

  1. Go to “system settings”
  2. Click “Screen Time”
  3. Select “content & privacy”
  4. Enable restrictions
  5. Go to “App Store, media, web & games”
  6. Find “access to web content”
  7. Choose “limit adult websites” or “only approved websites”
  8. Click “customize” to add restricted or allowed websites.

This will apply restrictions across all browsers on your Mac. If you’re managing website access for privacy reasons as well as restriction, it may be helpful to know how to clear history on a Mac across Safari and other browsers.

Method 2: Use Safari Content Blockers

You can control Safari itself by managing its content blockers inside Safari’s settings. This way, you can set restrictions and website permissions individually without changing system-wide restrictions.

Steps:

  1. Open Safari
  2. Click “Safari” in the menu bar
  3. Select “settings”
  4. Go to the “websites” tab
  5. Click “Content Blockers”
  6. Enable or disable blocks for specific websites.

You don’t have to block domains at the system level. The Safari Content Blockers feature allows you to customize how your extensions and content filters behave on certain websites.

Method 3: Block Websites by Editing Hosts File via Terminal

This refers to editing the hosts file, which blocks websites at the system level.

Steps:

  1. Open Terminal
  2. Type: “sudo nano/etc/hosts” and press Enter
  3. On a new line, add “1270.0.1” followed by the website’s domain, e.g., “127.0.0.1 www.example.com” 
  4. Do this with every website you want to block
  5. Save (Control+O) and exit (Control+X)
  6. To enable restriction, flush DNS cache by entering: “sudo dscacheutil  && -flushcachesudo killall -HUP mDNSResponder”.

This is much harder to bypass than Screen Time if someone doesn’t have administrator access.

Method 4: Safari Extensions

There are browser extensions for everything, and blocking websites is no exception. Depending on what you need, extensions can either block access or introduce lighter, productivity-focused controls. 

Here are some examples:

  • 1Blocker is best for Apple ecosystem integration, allowing for customizable filtering rules directly in Safari.
  • BlockSite is an extension that blocks distracting websites.
  • Freedom is helpful if you need cross-platform blocking with synced sessions across devices.
  • One sec doesn’t block any domains, but it introduces a short delay before a distracting site opens.
    • This is called mindful blocking and adds some intentional friction to interrupt automatic behavior. It can be especially helpful to users who struggle with impulsive social media checking, as even a brief pause can force you to reconsider what you’re doing. In many such cases, this instant gratification delay may be more effective and have longer-lasting results than total restrictions.
  • Self Control is a free Mac app that blocks websites on a timer and can’t be overridden.
  • 1Focus is a Mac app for blocking websites and apps during work.
  • Hey Focus is another Mac productivity app.
  • Trend Micro can help you with parental control and web filtering.

Method 5: Use Focus Mode to Limit Distractions

Focus Mode doesn’t directly block any websites, but it can limit (or entirely eliminate) notifications and app access during scheduled time periods, supporting your productivity when you’re at work or school. It can be used as a complementary tool.

Steps:

  1. Open “system settings”
  2. Select “Focus”
  3. Choose or create a Focus profile (e.g., Work or Study)
  4. Set allowed apps and people
  5. Schedule activation times.

This is the perfect solution for those seeking structure and time-based boundaries, not necessarily blocks.

How to Block Websites on Safari Without Screen Time

In short: If Screen Time isn’t strict enough, use DNS filtering or router-level blocking for stronger, network-wide enforcement.

For many users, Screen Time may seem too easy to disable but, luckily, this is not the end of your options.

DNS Filtering

DNS filtering is an online security method that controls internet access by blocking or allowing domain requests based on predefined rules. As it prevents connections before a website even loads, it’s a good option for combating malicious websites, phishing attacks, and inappropriate content.

There are providers who offer ready family or filtering solutions:

  • Cloudflare for Families (1.1.1.3) filters malware and adult content
  • OpenDNS FamilyShield allows you to preconfigure parental filtering
  • CleanBrowsing offers multiple filtering levels (family, adult, and security).

They work at the network level, meaning restrictions apply across Safari, Chrome, Firefox, apps that have internet access or any device connected to the configured network.

To configure it on iPhone or iPad:

  1. Go to “settings”
  2. Choose “WiFi”
  3. Tap your network
  4. Tap “configure DNS”
  5. Select “manual”
  6. Enter DNS server addresses (IP).

This applies across all apps and browsers on devices connected to that network.

Some DNS providers offer privacy protections and ad blocking along with filtering features. These may be worth considering if you’re comparing services and considering value.

For Macs:

  1. Open “system settings”
  2. Go to “network” and choose “Wi-Fi”
  3. Select your active connection
  4. Click “details”
  5. Go to the DNS tab
  6. Click the “+” button and enter the DNS server addresses (IP).

DNS filtering is harder to bypass than Screen Time, as it operates outside of Safari and doesn’t rely on any app settings.

Router-Level Blocking

Router filtering is another security option for those fearing that Screen Time may not be enough. It blocks websites for every device connected to your WiFi network and is a perfect solution for multi-person households and other shared networks.

To do this:

  1. Open a browser
  2. Enter your router IP (e.g., 192.168.1.1)
  3. Log in to the router admin panel (if it hasn’t been changed, it should be displayed on the router itself)
  4. Locate “parental controls,” “access control,” “firewall,” “security,” “content filtering” or “URL filtering” (the exact name depends on the router brand)
  5. Add domains or keywords to block
  6. Make sure to “save” or “apply” changes.

To find your IP go to “system settings,” choose “network” and then “Wi-Fi,” where you will find “details” (IP should be displayed next to “router”).

For Families and Businesses: When to Use MDM

If you’re managing multiple Apple devices (for your household or business), you may want to consider Mobile Device Management platforms. Cloud-based solutions like Scalefusion or VantageMDM facilitate centralized policy control. As an admin, you’ll be able to set restrictions across all devices without configuring each one by hand.

This can be especially helpful in schools and companies but also larger households.

Additional Settings: Safari Pop-Up Blocking and Fraudulent Website Warnings

These features don’t block specific domains or groups of websites like Screen Time or DNS filtering, but Safari’s pop-up blocking and fraudulent website warnings can help you reduce exposure to malicious or deceptive websites.

Blocking Pop-Ups in Safari

Pop-up windows are often used for aggressive ads but also scams and misleading download prompts.

To enable pop-up blocking:

  1. Open Safari
  2. Click “Safari” in the menu bar
  3. Select “settings”
  4. Go to the Websites tab
  5. Click “pop-up windows”
  6. Set unwanted sites to “block” or “block and notify.”

Feel overwhelmed with not only pop-ups, but also annoying spam emails on your iPhone? See how to stop unwanted emails by blocking email addresses and learn how to stop spam emails (in general). 

Fraudulent Websites Warnings in Safari

Safari can also warn you before it loads a website it deems suspicious.

To turn it on:

  1. Open Safari
  2. Click “Safari” in the menu bar
  3. Select “settings”
  4. Go to the Security tab
  5. Enable “fraudulent website warning”

With this feature on, Safari will check websites against known threat databases. It will alert you if a site you’re trying to access is likely to attempt to steal your data.

Final Thoughts: Choosing the Right Level of Control

You can make blocking websites on Safari as simple or as strict as you need it to be. Screen Time offers a straightforward and user-friendly solution that’s best for productivity, while DNS filtering, router controls, and hosts file editing provide stronger protection for those seeking it. 

By choosing the right tool, or better—the right combination of tools—you can build a browsing environment that supports safety, focus, and digital wellbeing across your Apple devices.



FAQ

How do I block a specific website on Safari?

Add the domain under the Never Allow mode in Screen Time’s web content settings. This will block the website across all browsers on your device.

How do I block websites on Safari without Screen Time?

You can choose from DNS filtering, router-level blocking, editing Mac hosts files, or getting a third-party extension, depending on your needs and blocking scope.

Can I permanently block a website on my phone?

There’s no way to block a website once and for all, but with a unique Screen Time passcode or network-level filtering, you can make restrictions more durable.

How do I block adult websites on Safari?

Select Limit Adult Websites in the Screen Time settings to enable automatic filtering based on Apple’s internal website list of explicit content.

What if Screen Time is too easy to turn off?

In this case, consider using DNS filtering or router-level controls. You can also ask another person to set your Screen Time passcode without telling you what it is.

Is this article helpful?
YesNo
Scroll to Top