• Editorial Process
  • Why Trust Us?
  • Affiliate Linking Policy
  • Privacy Policy
  • Terms of Service

Weekly Must-Reads View All

7 things to do if you spilled water on your macbook.

Quick steps to save your MacBook from water damage

How to Boot Your Mac Into Verbose Mode: 4 Best Ways

Boot your Mac into Verbose Mode with this step-by-step guide

How to Fix Your Mac Shutting Down Randomly: 16 Fixes to Try

Troubleshoot random shutdowns on Mac with effective solutions

How Much Space Does macOS Take On Your Mac?

Understand macOS size and analyze your Mac's storage usage

Popular Topics

  • What to Do With Your Old MacBook? 13 Useful Ways to Reuse an Old Mac
  • What Is the MacBook Flexgate Issue and How to Fix It
  • What Is the MacBook Flexgate Issue
  • Uninstall Java
  • Safely Transfer Files from Mac to Mac
  • Safari Bookmarks Disappeared on Mac: 10 Best Ways to Restore Them
  • Repairing disk permissions
  • Old MacBook

Trending Now View All

7 Things to Do If You Spilled Water on Your MacBook Featured Image

  • Mac Maintenance

How to Block Websites on Safari on Mac: 5 Best Ways

' src=

Hashir Ibrahim

' src=

Reviewed by

Last updated: December 22, 2023

Expert verified

To block websites on Safari on a Mac, use one of the following methods:

  • Set up Screen Time in System Settings and choose Content & Privacy to limit adult websites or specify only allowed websites​ ​.
  • Access your router’s settings via its IP address and use the Access Restrictions or Parental Controls to block specific websites​.
  • Install a web blocker extension from the App Store.
  • Download and use third-party web blocker apps.
  • Use the sudo nano /etc/hosts command to edit the host file via Terminal to block specific websites.

I know how easy it is to get distracted online, especially when trying to work or study on a Mac. That’s why I put together this guide with simple, straight-to-the-point steps that I use myself to keep focused. These methods really work whether you’re aiming to stay focused, manage your online activities, or just streamline your browsing.

Before We Begin

Besides blocking websites on your Mac, you should also remove adware and unwanted programs. Download MacKeeper and use its Adware Cleaner to avoid annoying pop-ups that send you to websites you don’t want to visit.

How to Block a Website on Safari on Mac

There are different solutions for blocking websites on Safari. Below, I’ve shared some quick ways to block websites on Safari.

1. Use Screen Time

Screen Time is a feature in macOS, iOS, and iPadOS that allows you to set limits on app usage, including Safari. You can use Screen Time to block specific websites or categories of websites during certain times of the day. You can also use it to block all websites and whitelist some specific ones.

For macOS 10.15 Catalina or Later

Here’s how to use Screen Time to block websites on Safari on your Mac:

  • Open the Apple menu and click System Settings .

click the apple icon and select system settings

  • Click Screen Time in System Settings and select Content & Privacy .

click screen time and select content and privacy

  • Click Content Restrictions .

click content restrictions in content and privacy

  • A new window will appear. Click the drop-down icon next to Access to Web Content and select Limit Adult Websites .

click limit adult websites to block adult content

If you want to manage your time on specific websites using Safari, you can do that with Screen Time. Here are the steps for setting a time limit for certain websites on Safari on a Mac:

  • Click Screen Time in System Settings and select App Limits .

click screen time in system settings and select app limits

  • In the App Limits section, toggle on the App Limits switch and click the Add Limit button to create a new restriction.

toggle on the app limits switch and click the add limit button

  • Scroll down to the end of the list until you find the option for Websites .

find websites in the list to add a new app limit

  • Click the dropdown arrow next to Websites to specify which websites you want to set time limits for.
  • Select a website from the list or add a URL.
  • In the Time section, specify the time you wish to allow for this site. This is the duration for which you can access the site each day.
  • Once you have set the time limit, click Done .

select a website specify a time and click done

For iOS 12 or Later and iPadOS

Here’s how to use Screen Time to block websites on Safari on your iPhone or iPad:

  • Open the Settings app on your iPhone.
  • Tap  Screen Time .
  • If Screen Time isn’t already enabled, tap Turn On Screen Time , then tap Continue . If it’s for your iPhone, select This is My iPhone .
  • Tap  Content & Privacy Restrictions and toggle on the Content & Privacy Restrictions switch.
  • Tap  Content Restrictions  and select Web Content .
  • Select  Limit Adult Websites .
  • Tap  Add Website in the Never Allow section.
  • Type the website URL you want to restrict in the URL field and tap  Done .

2. Change Router Settings

If you block websites through your router settings, it stops those sites on every device using your Wi-Fi. You just need to go into your router’s settings and choose the websites you want to block.

Here are the steps to block websites on Safari using router settings:

  • Open your web browser and enter your router’s IP address in the address bar. You can usually find this information on the back of your router or in the manual.
  • Enter your login credentials when prompted. The default username and password should be listed in your router’s manual if you need to change them.
  • Look for the Access Restrictions or Parental Controls section in your router’s settings. It may be under the Advanced or Security tab.
  • Choose the Website Blocking or Block Sites option.
  • Enter the URL you want to block in the Website URL field. Some routers may also allow you to block websites based on keywords.
  • Save the settings and exit the router’s interface.

3. Install A Web Blocker Extension

You can also add a browser extension to your web browser to do different things, including blocking websites. Safari doesn’t have a dedicated store for extensions, like Chrome. Instead, you have to download them from the App Store.

For Safari, I recommend a website-blocking extension called StayFree, a popular choice among Mac users.

For macOS 10.12 or Later

  • Open Safari on your Mac.
  • Click Safari in the menu bar and select Safari Extensions . This will open the App Store.

click safari and select safari extensions

  • In the App Store, type StayFree in the search bar and click Get > Install next to the app name in the results.

search for an extension in the app store and click the install button

  • Wait for the extension to install. Once it’s installed, you might get this notification in Safari. Click the Turn On Extensions button.

click the turn on extensions button in safari

  • Close Safari and reopen it. You should now see the extension’s icon near the address bar.

click the extension icon in the safari toolbar

  • To block a site, click the extension icon, and select Focus Mode Settings .

click stayfree extension icon and select focus mode settings

  • It will open a new window. Click the Add Website button.

click the add website button in extension settings

  • Type the website URL and click Save . It will block the website and you won’t be able to reload it until you remove it from the Blocked Website list.

add a website url and click save

For iOS 15 or Later and iPadOS 15 or Later

iOS 15 and iPadOS 15 support web extensions for Safari. To add a Safari website blocker extension to your iPhone or iPad, follow these steps:

  • Open Settings on your iPhone or iPad.
  • Navigate to Safari .
  • Select Extensions > More Extensions . This directs you to the App Store, showing compatible Safari extensions.
  • Pick a web blocker extension for screen time control, and download it.
  • Activate the Safari extension by going to Settings > Safari > Extensions .
  • Find the web blocker extension you’ve installed and turn it on.

4. Use Third-Party Web Blocker Apps

Third-party web blocker apps offer another effective solution for managing online content access on Mac. These apps work by letting you make a list of websites you want to block. This stops you from accessing these sites for certain times you choose or all the time.

Here are some third-party web blocker apps that you might consider using:

  • Cisdem AppCrypt : Cisdem AppCrypt is not just a website blocker, it also locks apps with a password. For website blocking, you can create a blacklist or whitelist and set up a schedule to block sites during certain times.
  • 1Focus : 1Focus lets you block distracting websites and apps. It’s simple to use and lets you set periods of focus during which specific sites and apps are inaccessible. You can also schedule recurring focus sessions, making it a handy tool for establishing a routine.
  • Freedom : Freedom is a popular app for blocking distracting websites and apps across multiple devices. It lets you create blocklists and schedule distraction-free sessions, making it a great tool for improving focus and productivity.
  • SelfControl : Specifically for macOS, SelfControl lets you block access to distracting websites, mail servers, or anything else on the Internet. Once you set a period to block for, not even restarting your Mac or deleting the app will disable the block.

5. Map Domain Using Host Files/Terminal

Blocking websites in Safari on your Mac can be done by using host files. These files connect website names to their internet addresses. You can change these files to stop your Mac from reaching certain websites.

Here are the steps to map domain using host files:

  • Open the Terminal application on your Mac. You can do this by searching for Terminal using Spotlight or by navigating to Applications > Utilities > Terminal .

launch terminal from utilities

  • In the Terminal window, type the following command to open the host’s file and press Enter :

type sudo nano etc hosts in terminal

  • You will be prompted to enter your admin password. Enter it.
  • Use the arrow keys to navigate to the bottom of the host’s file.
  • To block a website, add the following line to the bottom of the file, replacing example.com with the URL of the website you want to block:
  • You can add as many websites as you want by creating a new line for each website.
  • Press Control ^ + O to save the changes to the host’s file.

macbook pro control o

  • Press Control ^ + X to exit the editor.

macbook pro control x

  • To make the changes take effect, flush the DNS cache on Mac by typing the following command in the Terminal:

type sudo dscacheutil flushcache sudo killall HUP mDNSResponder in terminal

  • It will clear the cached DNS entries, forcing the Mac to use the updated host file.

Once you’ve completed these steps, Safari and other browsers on your Mac should no longer be able to access the websites you’ve blocked in the host file.

This method blocks the websites system-wide, so it will affect all users on your Mac. To unblock a website, remove the corresponding line from the host file and flush the DNS cache again.

How to Whitelist Specific Websites on Mac

Once you’ve set up Screen Time to limit websites, most adult websites will become inaccessible. But if you want to allow specific websites only, follow these steps:

  • Follow the above steps from 1 to 3, and instead of Limit Adult Websites, select Allowed Websites Only in the Web Content window.

select allowed websites only next to access to web content

  • Click the Customise button that appears.

click customise under access to web content

  • In the new window, click the + button in the bottom left corner.

click the plus icon to add a website

  • Type in the name and URL of the website you want to allow and tap Done .

add the webiste name and url and tap done

  • The website you add will appear in the list.

your allowed website will appear in the list

  • Click Done to close the window.

Avoid Distractions While Browsing With MacKeeper

MacKeeper does not offer a feature to block websites on Safari. But it offers an Adware Cleaner that can detect and remove adware and potentially unwanted programs causing unwanted pop-ups or redirects to certain websites. This can indirectly help with blocking certain websites.

To use the Adware Cleaner feature in MacKeeper:

  • Download and install MacKeeper on your Mac.
  • Open MacKeeper and click Adware Cleaner in the left sidebar.

click adware cleaner under security

  • Click Open .

click open in adware cleaner

  • Click Start Scan to scan your system for adware and potentially unwanted programs.

click start scan in adware cleaner

  • Once the scan is complete, review the list of detected items and select the ones you want to remove.
  • If there are no malicious files, you’ll get a No items found message on your screen. Click Rescan to run the scan again or close the program.

click rescan in adware cleaner

While this may not directly block websites on Safari, removing adware and potentially unwanted programs can prevent unwanted pop-ups or redirects to those websites. So, it’s worth a try.

What Else Can MacKeeper Do?

Besides removing adware on your Mac, MacKeeper can block ads on your Mac , disable pop-ups on Safari and other browsers, and remove browser extensions . Check out my MacKeeper review to learn about these features.

Why Would You Need to Block Websites on Safari?

Blocking websites on Safari can be necessary for several reasons:

  • 🎯 Focus and Productivity : If you find yourself frequently distracted by certain websites while working or studying, blocking them can help maintain focus and boost productivity.
  • 👪 Parental Controls : For parents, blocking websites is a way to ensure children don’t access inappropriate content or spend too much time on entertainment sites.
  • 🔒 Online Safety : Blocking websites that are known for phishing, scams, or malicious content helps protect your personal information and your device’s security.
  • 📶 Bandwidth Management : In some cases, especially in a workplace, blocking websites that consume a lot of bandwidth (like streaming services) can help maintain network performance.
  • 💆 Digital Well-being : Sometimes, blocking websites can be a part of a digital detox strategy, helping reduce time spent on addictive sites and improving overall well-being.

In each case, the goal is to create a safer, more focused, and more productive online environment.

Block Unwanted Websites on Safari and Be More Productive

Now that you know how to block websites on Safari, you may want to take your productivity up a notch. Here are some more tips to make your Safari experience better.

  • Clear Safari cache on your Mac to improve its performance and prevent slow loading times.
  • If your Safari is crashing on Mac , troubleshoot the problem by updating it and clearing the cache and cookies.
  • Update Safari on Mac to prevent crashes and improve its security.

Frequently Asked Questions

Can i unblock websites that i’ve blocked on safari on mac.

Yes, you can unblock websites previously blocked in Safari on your Mac. The method to unblock depends on how you blocked the site initially, whether through browser settings, a parental control app, or system files.

Can I password-protect the blocked websites?

No, you cannot password-protect the blocked websites using the built-in website-blocking feature on Safari. If you want to password-protect your blocked websites, use a third-party app or software that offers this feature.

Will blocking websites on Safari prevent me from accessing them on other devices?

No, blocking websites on Safari will not prevent you from accessing them on other devices. Blocking websites on Safari only affects your Safari browser on the device you set it up on. You can access those websites easily on other devices.

Can I block websites based on specific keywords?

No, you cannot block websites based on specific keywords using the built-in website blocking feature on Safari. However, some third-party apps or browser extensions allow blocking websites based on keywords or phrases.

' src=

I'm Hashir, a tech journalist with a decade of experience. My work has been featured in some of the top tech publications like MakeUseOf and MakeTechEasier. I have a bachelor's degree in IT, a master's in cybersecurity, and extensive knowledge of Apple hardware, specifically MacBooks. As the senior writer at MacBook Journal, I write in depth guides that help you solve any issues you have with your mac and unbiased reviews that help you make the right buying decisions.

' src=

Hi there! I'm Ojash, a tech journalist with over a decade of experience in the industry. I've had the privilege of contributing to some of the world's largest tech publications, making my mark as a respected Mac expert. My passion lies in exploring, using, and writing about MacBooks, and I enjoy sharing my expertise to help others make informed decisions and get the most out of their MacBook experience. Join me as we delve into the fascinating world of MacBooks together!

You May Also Like

How to Delete Downloads on Mac Featured Image

How to Delete Downloads on Mac to Free Up Space Quickly

Quickly clear downloads on Mac for more storage space

How to Reinstall macOS on Your MacBook Featured Image

How to Reinstall macOS on Your MacBook Air/Pro or iMac: 3 Best Ways

Reinstall macOS seamlessly on your MacBook Air, Pro, or iMac

How to Remove Login Items on Your Mac Featured Image

How to Remove Login Items on Your Mac: 5 Quick Ways

Remove login items on your Mac to declutter startup programs

How to Delete Files on a Mac Featured Image

How to Delete Files on a Mac: 12 Best Ways

Written by Hashir Ibrahim Reviewed by Ojash Last updated: October 17, 2023

  • PRO Courses Guides New Tech Help Pro Expert Videos About wikiHow Pro Upgrade Sign In
  • EDIT Edit this Article
  • EXPLORE Tech Help Pro About Us Random Article Quizzes Request a New Article Community Dashboard This Or That Game Popular Categories Arts and Entertainment Artwork Books Movies Computers and Electronics Computers Phone Skills Technology Hacks Health Men's Health Mental Health Women's Health Relationships Dating Love Relationship Issues Hobbies and Crafts Crafts Drawing Games Education & Communication Communication Skills Personal Development Studying Personal Care and Style Fashion Hair Care Personal Hygiene Youth Personal Care School Stuff Dating All Categories Arts and Entertainment Finance and Business Home and Garden Relationship Quizzes Cars & Other Vehicles Food and Entertaining Personal Care and Style Sports and Fitness Computers and Electronics Health Pets and Animals Travel Education & Communication Hobbies and Crafts Philosophy and Religion Work World Family Life Holidays and Traditions Relationships Youth
  • Browse Articles
  • Learn Something New
  • Quizzes Hot
  • This Or That Game New
  • Train Your Brain
  • Explore More
  • Support wikiHow
  • About wikiHow
  • Log in / Sign up

How to Block Websites on an iPhone

Last Updated: July 14, 2023

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA . Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 108,244 times. Learn more...

This wikiHow teaches you how to block users of an iPhone from being able to access certain websites in Safari.

Blocking Specific Websites

Step 1 Open your iPhone’s Settings.

  • If Restrictions are already enabled, you won’t see this button. Instead, you’ll be at a menu titled “Restrictions.” Skip to step 7, and enter your 4-digit passcode when prompted.

Step 5 Type a 4-digit passcode.

  • If you lose or forget this passcode, you won’t be able to edit restrictions without erasing the content from your iPhone. [2] X Research source

Step 6 Type the passcode again to confirm.

  • Some sites have mobile versions that you’ll need to block separately. For example, Google’s mobile website is accessible at m.google.com .

Step 10 Tap Done.

  • To block another website, tap Add a Website again.
  • If you’d like to block all adult/obscene content, scroll back up and tap Limit Adult Content .

Blocking All Websites Except Those You Specify

Step 1 Open your iPhone’s Settings.

  • Use this method only if you want to block access to all websites in Safari except those you add. [4] X Research source

Step 2 Tap General.

  • If you lose or forget this passcode, you won’t be able to edit restrictions without erasing the content from your iPhone. [5] X Research source

Step 6 Type the passcode again to confirm.

  • Some sites have mobile versions that you’ll need to allow separately. For example, Google’s mobile website is accessible at m.google.com .

Step 11 Tap Done.

  • To allow more websites, tap Add a Website… under “Always Allow” again.

Community Q&A

wikiHow Staff Editor

  • If a website is wrongly blocked by your filters, return to your Restrictions settings, tap Add a Website under “Always Allow,” then enter the site’s address. [7] X Research source Thanks Helpful 1 Not Helpful 0
  • If the person using this iPhone downloads another web browser, they may be able to browse without restriction. See Restrict Unauthorized Use of iOS Apps to learn how to prevent the installation of other browsers. Thanks Helpful 0 Not Helpful 0

block page in safari

You Might Also Like

Find a Lost iPhone

  • ↑ https://support.apple.com/en-us/HT201304
  • ↑ http://www.imore.com/how-block-specific-websites-being-accessed-safari-iphone-and-ipad
  • ↑ http://www.iphonelife.com/blog/31961/tip-day-how-restrict-access-specific-websites-safari

About This Article

Nicole Levine, MFA

1. Open Settings. 2. Tap General . 3. Tap Restrictions . 4. Tap Enable Restrictions . 5. Create a passcode. 6. Tap Websites . 7. Tap Add a Website . 8. Enter the URL and tap Done . Did this summary help you? Yes No

  • Send fan mail to authors

Is this article up to date?

block page in safari

Featured Articles

Relive the 1970s (for Kids)

Trending Articles

How to Celebrate Passover: Rules, Rituals, Foods, & More

Watch Articles

Fold Boxer Briefs

  • Terms of Use
  • Privacy Policy
  • Do Not Sell or Share My Info
  • Not Selling Info

Keep up with tech in just 5 minutes a week!

How to Block a Website on Safari

We'll show you the two best methods to block websites on Safari for your Mac.

Looking for the best way to block websites on your iPhone or Mac? Whether you want to protect your child from visiting an inappropriate site or prevent yourself from getting distracted when working, you can quickly and effortlessly block certain sites on Safari.

Below, we look at the methods you can use to block and restrict websites on your iPhone and Mac. We'll show you how to use Screen Time and third-party apps to do so.

How to Block Websites on Your iPhone Using Screen Time

Let's first look at how to block a website on your iPhone indefinitely. For example, if your child uses your device, it's important to put parental controls on an iPhone , which includes blocking adult websites and other age-restricted sites on your device.

Follow these steps to block a website in Safari on your iPhone:

  • Go to Settings > Screen Time . If you haven't enabled Screen Time before, tap Turn On Screen Time and follow the on-screen instructions.
  • Tap Content & Privacy Restrictions .
  • Toggle on Content & Privacy Restrictions . Tap Content Restrictions > Web Content > Limit Adult Websites . This setting doesn't guarantee that all pornographic sites will get blocked on your iPhone, though. So, if there's a specific website you want to block, carry out the next two steps.
  • Tap Add Website under Never Allow .
  • Type the URL of the website and tap Done to save.

How to Restrict Website Access on Your iPhone Using Screen Time

In some cases, you might not want to block a website on your iPhone's Safari app permanently. Therefore, you can opt to just restrict the amount of time a website can be accessed on your iPhone.

This method is mostly handy for parents who want to restrict the time their children spend on a particular site, like a social media platform. You can use it to control your own usage, too. Here's how to restrict access to a website on your iPhone:

  • In your iPhone's Screen Time settings, go to App Limits > Add Limit > Websites .
  • Select a site from the dropdown, or tap Add Website to type the URL. Then, tap Done > Next .
  • Scroll to set the length of time allowed to access the site. Tap Add .
  • Toggle on Use Screen Time Passcode . Enter your preferred passcode.

Now, if you set a limit of one hour, Safari will block the site once it has been accessed for an hour for the day. To access the restricted site, the user will need to enter the Screen Time passcode.

How to Use BlockSite to Block Websites on Your iPhone

If you feel that using Screen Time to block websites on your iPhone is a little cumbersome, an alternative is to use a third-party app like BlockSite. Follow these steps to block websites on your iPhone's Safari app without Screen Time:

  • Launch BlockSite . Tap Block Something .
  • Type a URL in the search field. Select the site listed in the search results and tap Next .
  • Set how many days and for how long you want the site to be blocked on your iPhone. Tap Next .
  • Tap Done to save.

Once the app has blocked the website on your iPhone, it will not load in Safari when you try to access it. You'll only see a Safari cannot open the page message.

Download: BlockSite (Free, subscription available)

How to Block Websites on Your Mac Using Screen Time

Although you can also use the Terminal app to block any website on your Mac , that's a lot more intimidating. It also leaves the chance that something could go wrong.

Therefore, let's use easier methods. They're similar to how you would block websites on your iPhone. Here's what you need to do to block a website on your Mac using Screen Time:

  • Click the Apple menu , then click System Settings > Screen Time .
  • Toggle on Screen Time if you haven't used it before.
  • Go to Content & Privacy . Toggle on Content & Privacy . Click Content Restrictions .
  • For Access to Web Content , change to Limit Adult Sites . Click Customize , then the Add (+) icon under Restricted . Type the web address in the URL field and click Done .
  • Click Done again to save.

When you try to access the blocked website, Safari will inform you that you can't do so because it's not on the approved list in Screen Time.

How to Restrict Website Access on Your Mac Using Screen Time

To block access to a website in Safari once it has been used for a period of time, follow these steps in macOS:

  • Click the Apple Menu , then go to System Settings > Screen Time .
  • Next, click App Limits and toggle on App Limits .
  • Click Add Limit . Scroll down to find Websites . Click the dropdown arrow and type in the website URL in the empty field.
  • In the Time field, you can choose the exact amount of time that you want to be able to spend on the chosen website.
  • To set a different limit for a site depending on the day, click Custom > Edit and type in the amount of time you wish to spend scrolling through that website for any specific day.
  • When you're ready, click Done .

If you're restricting a website on Safari, not for yourself, but to prevent your child from visiting it, remember to set a Screen Time passcode. That way, only the people who know that passcode would have the ability to change the settings.

In your Screen Time settings, toggle on Use Screen Time Passcode . Then, enter a memorable passcode to use.

Knowing how to turn off Screen Time on your Mac is also a handy skill to have since you might want to disable this feature after some time. You'll need your Screen Time passcode to do this.

How to Block Websites on Your Mac Using Safari Site Blockers

Many Mac users find it a bit complicated to use Screen Time to block a Safari website. It actually may take a while to get everything just right. The easier way around this problem is to install a dedicated Safari site blocker app instead. Below are two such apps you can use.

It's free to download and use but has a monthly and yearly pro subscription available. Among the features of the free version is the ability to block websites, so if that's what you're aiming for, you won't need to get a paid subscription.

To block websites on Safari using the 1Focus app, all you need to do is launch it, click the plus (+) icon, and type in the website URL in the field that appears. Then, hit Return on your keyboard. It's that easy.

Download: 1Focus (Free, subscription available)

If you're looking for a fancier option, take a look at the Focus City app. People who like to use a Pomodoro timer to increase their productivity levels will enjoy this application even more. It is also free to install and use. However, to get all of the features that come with this app, you'll need to get the Pro version.

Here's how to use Focus City to block certain websites on Safari on your Mac:

  • Launch Focus City or click the app icon in the menu bar.
  • Now, click Blocked to add a website that you want to block on Safari.
  • Double-click the example field to edit it. Type in the full URL of the site and hit Enter on your keyboard.
  • To add another website, click on the plus (+) icon.
  • Click Build to start your first Pomodoro session and block the added websites.

Download: Focus City (Free, subscription available)

Quickly Block a Website on Safari Using Any Method

At the moment, you can't block a website directly from the Safari browser on your iPhone and Mac. In many cases, this is what stops people from doing it since they think this process may get highly complicated, but the steps are actually quite easy.

Depending on your preferences, you can choose either the Screen Time feature to block a site on Safari or get a suitable third-party app. Both of the methods are straightforward, and you shouldn't have any issues when blocking a website on your iPhone or Mac.

  • Dragon’s Dogma 2
  • Genshin Impact
  • Honkai Star Rail
  • Lego Fortnite
  • Stardew Valley
  • NYT Strands
  • NYT Connections
  • Apple Watch
  • Crunchyroll
  • Prime Video
  • Jujutsu Kaisen
  • Demon Slayer
  • Chainsaw Man
  • Solo Leveling
  • Beebom Gadgets

How to Block Websites in Safari on iPhone and Mac

' src=

How to Block Websites in Safari on iOS, iPadOS, and macOS (June 2021)

How to block websites in safari using screen time on iphone and ipad.

  • Open the Settings app on your iPhone or iPad.

Open settings app on iPhone or iPad

4. Next up, turn on the switch next to “ Content & Privacy Restrictions ” and tap on the “ Content Restrictions ” option.

Tap on Content Restrictions - How to Block Websites in Safari on iPhone and Mac

Going forward, if someone tries to access the website through Safari, it will show you an “ Access Restricted ” error message. Besides, there will also be a warning saying, “You can’t browse this page at www.xyz.com because it’s restricted.”

Now Allow unrestricted access

How to Block Websites in Safari Using Screen Time on Mac

  • Launch “ System Preferences ” from the dock on your Mac. Alternately, click on the Apple icon at the top left corner and click on System Preferences from the drop-down menu.

Choose System Preferences

2. Now, choose Screen Time.

Choose Screen Time pane

7. That’s it! Now onwards, Safari won’t open this website. Whenever someone tries to open any of the blocked websites, the browser will show a warning saying, “Oops! You can’t see pages on this website. You can’t see the page “https://www.xyz.com/” because it’s not on the approved list in Screen Time.”

Blocked websites in Safari - How to Block Websites in Safari on iPhone and Mac

How to Block Websites in Safari Using AppCrypt on Mac

  • First off, download Cisdem AppCrypt ( Free , in-app purchases available) on your Mac and set a password. Make sure to remember your AppCrypt password as you cannot reset or retrieve it in the future. Click on “Submit” once you are done.

Set password

3. Next, click the “+” button at the bottom left and add the URL of the website you want to block in Safari on your Mac. If you want to block all sites except a few, use the Allowlist feature.

Block sites on macOS

How to Block Websites in Safari Using a Third-Party App on iPhone and iPad

  • Download the website blocker app ( Free ) on your iPhone or iPad. Then, launch the app and set a login password and log in.

Launch a website blocker

Note : Ensure that the website blocker is enabled in Safari. Open Settings app -> Safari -> Content Blockers (in iOS 14) or Extensions (in iOS 15 or later) and then make sure that the toggle next to the website blocker app is turned on. 

block websites in safari on ios

Block Websites in Safari with ease on iOS and macOS

' src=

Rajesh Mishra

An old school bibliophile who turned a tech nerd out of obsession. When he is not digging into hacks and tracking down stories that are breaking the internet, you may find him reciting poems.

Add new comment

MacBook Air M3 Specs and Benchmarks: Is It a Worthy Upgrade?

How to block a website on Safari

Block unwanted websites on Safari in just a few short steps

How to block a website on Safari

If you own a  MacBook , iPad or iPhone , chances are that you’re using Safari . And if you have kids that use your Apple devices, they’re also using the web browser. However, while you might like to have free reign of your devices, there are some websites you would rather younger users even have access to due to inappropriate content. In those cases, it’s important to know how to block a website on Safari . 

Since the internet can be an unpredictable place for even the most savvy of users,  oftentimes it is best just to limit access to what children can and cannot view. In this tutorial, we will be showing you how to block a website on Safari.

  • How to change Safari background on iPhone
  • How to group tabs on Chrome, Firefox, Safari, and Edge
  • iOS 15 tips: How to move the address bar back to the top of the Safari browser

How to block a website on Safari

1) Navigate to the top of your laptop screen and click on the Apple logo . 

How to block a website on Safari

2) A dropdown menu will appear . Scroll down in the menu and click on the System Preferences tab.

How to block a website on Safari

3) Once in System Preferences, navigate to the bottom of your menu and click on the Parental Controls tab.

How to block a website on Safari

4) In the Parental Controls tab, select the account that you wish to make changes to by selecting the name on the right-hand side of the screen, as well as selecting the lock icon.

How to block a website on Safari

5) After selecting the lock icon, log into your computer’s administrator account and continue.

Stay in the know with Laptop Mag

Get our in-depth reviews, helpful tips, great deals, and the biggest news stories delivered to your inbox.

How to block a website on Safari

6) Next, select the account that you wish to make changes to on the left side of the screen. The account I will be accessing is called Demo 1.

How to block a website on Safari

7) At the top of the task bar, navigate over to the Web tab. Click on the Web tab . While in the tab, click on Try to limit access to adult websites and from there hit Customize.

How to block a website on Safari

8) In the Customize tab , scroll down to the bottom of the screen, and click the + icon under the Never allow these websites tab. From there, you may add any website that you wish to be blocked, and the access to that website will be restricted.

How to block a website on Safari

9) Log into the other account and attempt to view the blocked site. It should now be inaccessible. 

How to convert PDF to JPG, PNG, or TIFF

How to add Outlook Calendar to Google Calendar

MacBook Pro M4 — everything we know so far

Most Popular

  • 2 Endgame Gear OP1 8k gaming mouse review: This weightless mouse is too good to pass up
  • 3 A murky monopoly: Apple vs. the Department of Justice
  • 4 How to block built-in ads on Windows 10: No, I don't want to upgrade to Windows 11 or make a Microsoft Account
  • 5 Second monitor not detected: How to fix this irritating Windows 10 problem

block page in safari

How to block websites on iPhone and iPad

Learn how to block websites on iPhone and iPad, especially if you have children or come across content you'd rather unsee

An image of an iPhone screen showing the Safari app icon in the center

If you're wondering how to block websites on iPhone and iPad then there's a strong chance you've come across a site that you'd rather not view again. Either that or you have children who you would like to keep safe online. After all, there's a lot of great content out there, but a helluva lot of bad stuff, too!

Stick with Safari as your browser of choice, however, and you can easily filter out unwanted websites. As well as blocking adult content, you can ensure specific sites cannot be accessed. You can also go the other way by making sure there's a blanket ban on all but a handful of websites. These are based on a list which you can tailor to suit your circumstances.

How to block websites on iPhone: Access the web content settings

In all cases, the website-blocking features are situated within Screen Time so, to make use of any one of the three functions explained below, you will need to follow these four steps first.

1. Launch the Settings app on your iPhone or iPad and tap Screen Time .

How to block websites on iPhone and iPad

2. Select Turn On Screen Time if it's not already on and follow the on-screen instructions to get set up. Otherwise, tap Content & Privacy Restrictions .

How to block websites on iPhone and iPad

3. Toggle the Content & Privacy Restrictions button into the “on” (green) position.

How to block websites on iPhone and iPad

4. Tap Web Content .

Sign up to get the BEST of Tom’s Guide direct to your inbox.

Upgrade your life with a daily dose of the biggest tech news, lifestyle hacks and our curated analysis. Be the first to know about cutting-edge gadgets and the hottest deals.

How to block websites on iPhone and iPad

How to block websites on iPhone: Limit adult websites in Safari

Now that you know how to get into the web content settings, you can start to block websites.

The simplest option is to make use of Apple's own list of adult websites. This will prevent you (or anyone else) from using Safari on an iPhone or iPad to view material aimed at adults.

1. Follow the steps above (concerning web content settings) and tap Limit Adult Websites .

How to block websites on iPhone and iPad

2. If you find this limits some websites that you would like to remain viewable, tap Add Website under Always Allow.

How to block websites on iPhone and iPad

3. You can then type the URL of the site you want to see. Tap Done and tap Web Content to go back to the previous screen.

How to block websites on iPhone and iPad

How to block specific websites on iPhone and iPad

You can also go further and select specific websites that you want to block. These will be in addition to the list of adult websites gathered by Apple.

1. Follow the steps above (concerning web content settings) then tap Limit Adult Websites .

How to block websites on iPhone and iPad

2. Now tap Add Website under Never Allow .

How to block websites on iPhone and iPad

3. Type the URL of the site you do not want to view and tap Done . You can then tap Web Content to go back to the previous screen.

How to block websites on iPhone and iPad

How to only allow specific websites to be viewed on iPhone and iPad

The third way of restricting access to online content is to block almost every website, before then allowing certain ones to be viewable.

1. Follow the steps above (concerning web content settings) and tap Allowed Websites Only .

How to block websites on iPhone and iPad

2. Now, underneath the list of websites which Apple will automatically allow, tap Add Website .

How to block websites on iPhone and iPad

3. Enter the title of the website you want to allow and enter the website's URL . Tap Done and tap Web Content to go back to the previous screen.

How to block websites on iPhone and iPad

And that's it. You should now be able to work out which approach works best for you. If you want to use a different browser, check out how to block a website in Chrome . If you're worried about theft try how to disable control center on a locked iPhone . You can also say goodbye to irritating ads thanks to the best ad blockers , learn how to disable the pop-up blocker in your browser , and, for good measure, figure out how to block spam calls on iPhone . If you're thinking about upgrading your Apple tablet, make sure you read our guide on how to transfer data from iPad to iPad . And if you're like to learn more about using your smartphone's apps, start with how to change your Instagram username .

David Crookes

David Crookes is a freelance writer, reporter, editor and author. He has written for technology and gaming magazines including Retro Gamer, Web User, Micro Mart, MagPi, Android, iCreate, Total PC Gaming, T3 and Macworld. He has also covered crime, history, politics, education, health, sport, film, music and more, and been a producer for BBC Radio 5 Live.

iOS 18 apps: 7 biggest rumored updates

iPhone 16 and iPhone 16 Pro dummies leak — and their cases reveal two big changes

Google's Gemini app could be about to get a major music upgrade — here's what we know

Most Popular

  • 2 iPhone 16 and iPhone 16 Pro dummies leak — and their cases reveal two big changes
  • 3 Apple tipped to discontinue FineWoven accessories — what we know
  • 4 OpenAI just dropped a new Sora video to promote TED Talks — and the video is explosive
  • 5 I meditated for 10 minutes before exercise every day for a week — here's what happened to my mind and body
  • 2 OpenAI just dropped a new Sora video to promote TED Talks — and the video is explosive
  • 3 I meditated for 10 minutes before exercise every day for a week — here's what happened to my mind and body
  • 4 How to grow a herb garden — make sure you do these 7 things
  • 5 I ditched my Sony WH-1000XM5 for the Nothing Ear — here’s what happened

block page in safari

  • Accessories
  • Meet the team
  • Advertise with us
  • Privacy Policy

iGeeksBlog

If you want to prevent your children from using any particular websites or your employee to be away from unnecessary websites, URL or Apps then there are some ways through which you can prevent them from using the web or app. To do so, you can configure Safari, set Parental Lock or there are some apps available for blocking websites. We have explained all three methods; block on Safari, Parental Lock and Lock through the app to block a website on safari.

How to Block Websites in Safari on Mac Running macOS Catalina or Earlier

Step #1. Launch the Terminal (Open Spotlight and search for the Terminal).

Step #2. In the Terminal type sudo pico /etc/hosts and press Enter. Pressing enter, you will be asked to enter the Administrator Password

sudo pico etc hosts command in Mac

Step #3. Once you enter Password, the Terminal text program will open on the host file. Scroll the cursor down to the bottom and press Enter. It will create a new line to type.

Step #4. Type the IP 127.0.0.1 followed by the URL or Site address. i.e: 127.0.0.1 www.yahoo.com And press Enter . Type another URL or Site following the same steps . Do not add more than one URL or Site in a single line , each entry should be in a separate line .

Block Websites on Safari Running Mac OS X Yosemite

Step #5. Once you are done with the entry ( the sites or URL, you want to block ), press Ctrl+O and then Enter to save them and exit the editor.

Step #6. Then Flush your cache in order to take effect to the settings, type  sudo dscacheutil -flushcache to flush your DNS and press Enter.

Now open the URLs or Sites you have blocked. If it is set up correctly you should not be able to open website/URL.

How to Unblock URLs or Websites you Have Blocked

Launch Terminal → type sudo pico /etc/hosts → remove the URL and Site → press Ctrl+O and Enter

How to Block Website/URL on Mac with Parental Controls

Step #1. First of all, make a separate User Account for your children.

Step #2. Then go to System Preferences on your Mac.

System Prefences in Mac OS X Yosemite

Step #3. Click on Parental Controls.

Locate Parental Controls on Mac OS X Yosemite

Step #4. Then click on the lock icon (shown at the bottom of the window.)

Step #5. Clicking on the lock icon, you will be asked to enter the password. Click to unlock.

Step #6. Then select the User account that you want to lock.

Step #7. Select the Web tab.

Step #8. Then select Try to limit adult websites automatically .

Block Website on Mac OS X Yosemite using Parental Lock

Step #9. Click on Customize…

Step #10. Under Never allow these websites, click on “ +” icon and enter URLs/websites that you want to block.

How to Block Website on Mac OS X Yosemite with Parental Controls

After adding the websites or URL you can be sure that it cannot be accessed by the banned user.

Block Website on Mac Through App

Self Control Mac App

There is an app, called Self Control, an open-source application for Mac OS X. Through the app, you can block the websites, URL, mail, and so on. The best thing about the app is when you block the sites/mail/URL, you cannot access the blocked sites unless and until the date you have added gets expired.

To Block, set a period of time and add sites to the blacklist and click Start. Once you click on start, it will be blocked for the period of time you have set. Until the timer expires, you cannot access those sites even if you delete the app.

Price: Free Download

That’s all, mate!

You would like to read these posts as well:

  • How to Preview Web Page in Safari on Mac
  • Safari for Windows: Feel the Apple Touch on Windows PC
  • How to update Safari on Mac

Do share your feedback with us in the comment below.

Dhvanesh

The founder of iGeeksBlog, Dhvanesh, is an Apple aficionado, who cannot stand even a slight innuendo about Apple products. He dons the cap of editor-in-chief to make sure that articles match the quality standard before they are published.

View all posts

🗣️ Our site is supported by our readers like you. When you purchase through our links, we earn a small commission. Read Disclaimer .

LEAVE A REPLY Cancel reply

Save my name, email, and website in this browser for the next time I comment.

Related Articles

10 best places to buy refurbished iphones in 2024, how to download watchos 10.5 beta 3 on apple watch, how to download macos sonoma 14.5 beta 3, how to download ipados 17.5 beta 3 on ipad.

Geek Dashboard Home

How to Block Websites in Safari Browser on your Mac, iPhone, and iPad

If you’re planning to block websites in Safari, and are new to the Apple Ecosystem, then you’re certain to get confused. Whether you’re blocking the website because of annoyance or for your children , the reason could be anything. Albeit, blocking websites on Safari, Chrome, Firefox, Edge or any other browser in Apple devices like Mac, iPhone, and iPad is as easy as pie.

There are multiple ways to block websites in Safari and it’s a little different on Mac, iPhone, and iPad but almost similar. In this guide, we’ll show you how to block any website on your Mac, iPhone, and iPad if you’re using the Safari or any other browser.

Guide to Block Sites on Safari on iPhone, MacBook and iPad

Block websites in Safari on Mac, iPhone, and iPad

Safari is a great web browser when it comes to browsing. But when you’ve to block certain websites for your employees or kids, it could be a little difficult for new Apple device owners.

However, Apple provides a system-wide solution to block websites on your device entirely whether it is Mac, iPhone, or iPad.

The method involves using the Screen Time feature on macOS, iOS, and iPadOS to block multiple websites. You can either choose to block only adult websites or choose custom sites to block.

So here’s how to block websites in Safari or any other browser on Mac, iPhone, and iPad.

When blocking websites with Screen Time, it works system wide and your machine can’t access the blocked URL anywhere. Be it in web browser or any installed apps. It acts like a system-wide parental control.

Steps to Block Websites on Safari in macOS

The easiest way to block websites on Mac is by using the new Screen Time feature. The Screen Time feature on macOS was introduced with the launch of macOS Catalina.

For this method to work, you need to be running macOS Catalina (version 10.15) or above. If you haven’t updated your Mac yet, then you should update it to the latest version for it to work. Once you update your macOS to the latest version, then follow these steps to block sites in Safari on Mac.

  • Click on the Apple logo on the top-left corner of your screen.

System Preferences under Apple Logo

  • Select Content & Privacy from the options on the left.
  • If it is not turned on by default, then you can click on the Turn On button.
  • Under Web Content , choose Limit Adult websites option to block well known adult sites automatically.

Enable Content Privacy to Block Websites

  • Type the URL of the website to block or restrict from viewing in Safari.

Entering URL to block websites

  • Save the blocked list by clicking on OK

Age Restricted website blocked in Safari

This is how you can block websites in Safari. On top of this, the websites are blocked on other browsers as well. Whether you use Google Chrome, Edge, Firefox, or any other browser, the restricted sites will not open on any of the browsers.

Also Read : How to Delete Apps on Mac That Won’t Delete

Furthermore, if any user knows how to unblock the blocked websites in Safari, then it’s best to use a passcode for Screen Time as well.

Also, the restriction popup contains an “Add Website” button which adds the website to whitelist but it requires the administrator password. Make sure the password is strong enough to guess.

Steps to Block Sites on iPhone and iPad

Blocking websites on iPhone and iPad are pretty similar to that of a Mac. However, you should be running iOS 13/iPadOS 13 or above to block websites on iPhone and iPad respectively.

If you aren’t running on iOS/iPadOS 13 or above, then you should update to the latest version. Once updated to the latest version of iOS and iPadOS, follow these steps to block websites in Safari on an iPhone and iPad.

iPhone Settings app

  • Now select Content Restriction .

block page in safari

  • Under choose Never Allow , tap on Add Website to add custom sites.

Never Allow these URLs option

After adding the websites list, they will be blocked and you can’t open them on the iPhone or iPad anywhere including Safari browser. Using Screen Time is the best method to block websites in Safari on iPhone and iPad. Similar to macOS, the websites will be blocked on other browsers as well including Chrome and other browsers.

Also Read : 2 Ways To Enter and Exit Recovery Mode on Any iPhone

You can swipe left on the website URL, and tap on Delete to unblock the website whenever you want.

Delete URL to Unblock the website

Block Websites System-wise on macOS, iOS and iPadOS

Whatever the reason may be for your blocking, you’ll be able to block any site on macOS, iOS, and iPadOS. However, make sure that you don’t let anyone access the Screen Time feature without any passcode. If they know how to get past the blocking, the blocking will be of no use.

In addition to blocking websites on Safari whether it’s Mac, iPhone, or iPad, it also blocks them at system-level blocking. Hence you can’t access those sites anywhere inside your device with any tool. I guess blocking sites on Safari isn’t hard as you think.

Hope this guide helped you in blocking websites in Safari without any parental control apps and modifying your router setting. If you have any queries or suggestions related to this topic, make sure to leave them in the comments.

Be the Change!

Spread the word and help us create better tech content

Avatar for Sajid Shaik

Sajid Shaik

A 22-year-old Tech Enthusiast who is into tech more than you. New tech excites him moreover anything else. Apart from tech, he does Graphic Designing as well. He's well known for his Vector Avatar made for MKBHD.

Leave a Reply Cancel reply

The comments section is to assist our readers with any inquiries. Each comment undergoes rigorous moderation before it can be approved for publication. Your name and comment will be publicly visible. Your email address will not be published. Required fields are marked *

Save my details (Name, Email, and Website) in browser and automatically add them when I visit next time.

By commenting on ths website, you agree to our Privacy Policy and Terms and Conditions *

How to block websites and set content restrictions on an iPhone or iPad

  • To block websites on an iPhone or iPad, go to the "Content Restriction" section of Screen Time.
  • You can block all adult sites or limit access to a list of pre-approved websites.
  • You can also block websites with explicit language and protect the settings with a passcode.

With the full swing of the digital age, it's not uncommon to have children under the age of 12 with an iPhone or iPad. 

If you want to set up an iPhone and iPad for your child, you may consider restricting access to any websites that you'd rather not end up in front of young eyes.

Here's what you need to know to block websites on an iPhone or iPad. 

How to block websites on an iPhone and iPad

There are various ways you can block websites on an iPhone so your child doesn't visit them.

1. Open the Settings app.

2. Scroll down and tap Screen Time .

3. Tap Content & Privacy Restrictions .

4. Tap the toggle for Content & Privacy Restrictions to switch it to the right (a green background will appear around the switch).

5. Tap Content Restrictions .

6. Tap Web Content .

7. Choose how you want to limit web access. 

  • Limit Adult Websites: This option blocks sites known to be adult in nature (like nudity and pornography). You can also add more sites that will always be blocked or allowed. 
  • Allowed Websites Only: This option allows you to create a customized list of the only sites that will be allowed.

How to block searches and explicit language on an iPhone and iPad

You should also consider blocking websites that contain explicit language.

1 . Open the Settings app.

2 . Scroll down and tap Screen Time .

3 . Tap Content & Privacy Restrictions .

4 . Tap Content Restrictions .

5 . Tap Explicit Language .

6 . Tap Don't Allow .

How to set up a passcode to protect your content restrictions 

While you're at it, you should also set up a screen time passcode. This will prevent any semi-savvy child from undoing any of the settings he or she doesn't like. 

3 . Tap Use Screen Time Passcode .

4 . Enter and re-enter the passcode.

5 . Enter your Apple ID username and password so you can recover the passcode if you forget it and tap OK in the bottom right corner of the pop-up.

Now whenever anyone tries to change the Screen Time settings they'll have to enter the passcode to get through.

block page in safari

  • Main content

How to block websites on iPhone and iPad — keep your kids safe in iOS 17

Here's how to block websites on iPhone.

iPhone 13 mini safari

  • Limit adult content in Safari
  • Block specific websites in Safari
  • Block everything except specific sites in Safari

Want to know how to block websites on iPhone and iPad? Apple offers the ability to do so on both iOS and iPadOS, allowing you to take control of Safari and restrict access to adult content such as porn and gambling.

This guide will teach you the three ways to block websites on iPhone and iPad by simply banning all adult content, adding specific websites to a ban list, or banning all websites and only allowing your children to access some. 

This comprehensive how-to guide will show you everything you need to know and teach you how to block websites on iPhone and iPad in Safari on iOS 17 .

How to limit adult content in Safari for iPhone and iPad

The first and easiest way to block websites in Safari is simply to turn on the "limit adult content" setting in Apple's Screen Time settings. This will create a blanket ban on websites generally considered to be adult, including porn and gambling, and requires the least effort. Here's how to do it:

  • Launch Settings from the home screen
  • Choose Screen Time
  • Tap Content & Privacy Restrictions

To limit adult content in Safari on iPhone, tap on the Settings app, then choose Screen Time. Choose Content & Privacy Restrictions

  • Toggle Content and Privacy Restrictions
  • Select Content Restrictions
  • Tap Web Content
  • Choose Limit Adult Websites

To limit adult content in Safari on iPhone, toggle Content & Privacy Restrictions, then select Content Restrictions. Tap Web Content. Choose Limit Adult Websites.

How to block specific websites in Safari for iPhone and iPad

If limiting adult content isn't enough, or you happen to notice a URL that has slipped through the cracks, you can always block any URL you want with restrictions. The steps are very similar:

  • Toggle Content & Privacy Restrictions
  • Tap Add a Website under NEVER ALLOW
  • Type the URL of the website you wish to block in the Website field
  • Select Back at the top left

To limit adult content in Safari on iPhone, tap Add a Website under Never Allow. Type the URL of the website to block. Choose Back.

Repeat this process for each site you'd like to block. Keep in mind that if certain websites have mobile sites , you may need to block them separately. If you find a site that's still getting through after you attempt to block it, visit that site and look in the Address Bar of Safari to make sure you're blocking the correct URL. Copy it if you need to and paste it into the field.

How to block everything and whitelist only specific sites in Safari for iPhone and iPad

For very young children, or if you simply want to make sure nothing is accessible except what you specifically allow, you can disable everything and then only turn back on the sites you consider permissible, like Apple or Disney.

Master your iPhone in minutes

iMore offers spot-on advice and guidance from our team of experts, with decades of Apple device experience to lean on. Learn more with iMore!

  • Choose Allowed Websites . This setting means only the websites you add are allowed to come through, and everything else is blocked

To limit adult content in Safari on iPhone, toggle Content & Privacy Restrictions, then select Content Restrictions. Tap Web Content. Choose Limit Adult Websites.

  • Tap Add Website
  • Add Title and URL for a custom website that you wish to add to your allow list
  • Choose Back

To block everything and whitelist only specific sites in Safari, tap Add Website. Add the Title and URL of the website. Choose Back.

Keep unwanted content off your kids' devices

There you have three different ways to block websites on iPhone. Each one is progressively more comprehensive, and as such requires slightly more steps each time. As mentioned, we would generally recommend starting with the general "limit adult websites," before progressing to more specific URL blocking if you want stronger controls. The "allowed websites" setting we'd generally recommend the most for devices used by young children. Using these tools will take away any worries of your children using one of the best iPhones . 

Stephen Warwick

Stephen Warwick has written about Apple for five years at iMore and previously elsewhere. He covers all of iMore's latest breaking news regarding all of Apple's products and services, both hardware and software. Stephen has interviewed industry experts in a range of fields including finance, litigation, security, and more. He also specializes in curating and reviewing audio hardware and has experience beyond journalism in sound engineering, production, and design. Before becoming a writer Stephen studied Ancient History at University and also worked at Apple for more than two years. Stephen is also a host on the iMore show, a weekly podcast recorded live that discusses the latest in breaking Apple news, as well as featuring fun trivia about all things Apple. Follow him on Twitter @stephenwarwick9

  • John-Anthony Disotto How To Editor

Apple issues fix for Palestinian flag controversy in iOS 17.5

iOS 17.5 and iPadOS 17.5 beta 2 drops to developers enrolled in program

Apple Vision Pro figures are reportedly at half of expected shipments — ‘there may be no new Vision Pro model in 2025’

Most Popular

  • 2 This time management app works across all your Apple devices and will make planning your days a piece of cake
  • 3 This iPhone trick has been around for years — why don't more people use Apple's built-in undo method?
  • 4 Get an iPhone 15 for free at Verizon — and this time there's no trade in required
  • 5 iOS 17.5 and iPadOS 17.5 beta 3 lands as public release gets closer

block page in safari

How to Permanently Block Websites on Safari on Mac

You can access just about any website on Safari, but there are times when you’d want to block some websites for one reason or another. Maybe you share your Mac with your family, or your kids use it for school and entertainment. Maybe you just prefer not to access certain websites. Whatever the reason, Mac allows you to block websites from launching on Safari.

There are several ways to block websites on Safari on your Mac, the obvious being third-party website blocker apps. But you can also block websites using Mac’s Screen Time feature, and in Safari through your router. Not sure how that works? We’ve got you covered. This article will show you all the ways to block websites on Safari on your Mac.

Before we start   Browser extensions can be useful for blocking ads and overall convenience. However, having too many of them can slow down your Mac’s performance. Consider disabling some browser extensions on your Mac. Of course, you can do this manually, but if you want to save time, you can let MacKeeper do it for you in a whim.     That’s just a fraction of what MacKeeper can do for your Mac. Check it out and see for yourself. Download MacKeeper now to keep your MacBook in optimal condition. 

Let’s have a look at all the ways you can block websites on Safari on your Mac.

In this article you will find the following:

  • How to block websites on Safari on Mac

You might already know how to block undesirable websites on Google Chrome , but did you know you can also do the same on Safari? You can block unwanted sites on Safari on your Mac in four ways.

How to block websites in Safari on a Mac using Screen Time

block websites in Safari

Apple’s Screen Time helps you manage and track usage on apps and websites on your Mac. In addition to scheduling downtime and setting limits, it allows you to block unwanted websites on your Mac.  

The first way to do this is by choosing the websites you want to access on Safari:

  • Open System Preferences on your Mac, then click on Screen Time
  • Click on Content & Privacy on the left of the screen
  • In the top-right corner, click Turn On Content & Privacy Restrictions
  • Now click on Allowed Websites Only , followed by Customize … to choose a list of websites you want to access through Safari on your Mac. This will block any website not listed from opening. Your Mac will let you know each time it blocks those websites in the background

The second method is to block particular websites.  

block page in safari

  • Open System Preferences , then click on Screen Time
  • Click on App Limits on the side bar on the left of the screen
  • Click Turn On App Limits in the top-right corner
  • Now click on the plus icon in the bottom-left corner of the App Limits box
  • Scroll down to Websites and click on the arrow on the left to see a list of possible websites to block. You can also add more websites to the list by clicking on the green plus icon and paste or type the URL of the website in the text box . If you want to block that website completely, leave the Time field as is at 0h 0m. Alternatively, you can choose the amount of time you want to spend on the website each day using the arrows next to Every Day . You can also set a custom time by clicking on Custom , followed by Edit . Now choose your daily time limit by checking the boxes

That’s it, you will now only be able to browse the websites you prefer.

How to block websites in Safari on a Mac with Terminal

block page in safari

Terminal is Mac’s interface that allows you to block websites without parental controls. It works by blocking websites from opening on the local IP address. As this is a more technical method, only attempt it if you’re comfortable with using command-line prompts.  

Launch Finder on your Mac:

  • Click on Applicatons , then double-click on the Utilities folder
  • Double-click on Terminal to launch it
  • Start by backing up the host file. This is an important step, in case anything goes wrong. To back up the host file, type “sudo /bin/cp /etc/hosts /etc/hosts-original” on a new line and press the Return key
  • Enter your Mac’s admin password when prompted, then press the Return key again.
  • Type “sudo nano /etc/hosts”, followed by the Return key
  • Using the down arrow key on your Mac, go to a new line and add the URL of the website you want to block, with the local IP address “127.0.0.1” before it, separated by a space. Be sure to add all the versions of the website on a new line, For example, “127.0.0.1 onlyfans.com” and “127.0.0.1 www.onlyfans.com”. Do this for every website you want to block
  • When you’re done, press Control-O . Now press the Return key. Your blocked websites are now saved
  • To exit Terminal, press Control-X

If you’re uncomfortable with using this method, there are more ways to block websites on Safari.  

Related reading: How to use Terminal command line on your Mac

How to block websites in Safari on a Mac through router

Another way to block websites on your Mac is through your router’s settings:  

1. Find your IP address on your router; it’s usually at the bottom. Alternatively, you can go to your Mac’s System Preferences > Network > Wi-Fi > Advanced… > TCP/IP . Your IP address will be shown next to Router

block page in safari

2. Type the address of the website you want to block in Safari

3. Now type your router’s admin name and password upon request

4. On the Settings page, find the options to block websites, and add each website you want to block

You’re all set. Just remember to do this again if you get a new router in the future.

How-To Geek

How to disable the pop-up blocker in safari on mac.

Never miss important pop-ups.

Quick Links

How to disable pop-up blocker for all websites in safari, how to disable pop-up blocker for specific website in safari.

Safari blocks all kinds of pop-up windows by default. In that mix, it ends up blocking some legitimate ones. Here's how you can disable the pop-up blocker in Safari for all websites or specific ones on Mac.

Many websites offer helpful pop-ups to enter important details such as login credentials, captcha, forms, and more. So it makes sense to allow pop-ups for certain websites.

It's annoying to click on the pop-up blocked notification every time you visit sites that require you to allow pop-ups. Luckily, you can change Safari's default behavior and get pop-up windows while browsing.

To get started, open the Safari browser on your Mac. Next, click "Safari" in the top-left corner of the menu bar and select "Preferences."

Click the "Websites" tab.

In the "General" column on the left, scroll down and select "Pop-up Windows."

Use the drop-down menu next to the "When Visiting Other Websites" option in the bottom-left and choose "Allow."

Safari will allow all future pop-up windows for all websites.

Related: How to Allow Pop-Ups in Safari on Mac

If you want to allow pop-up windows for a specific website (like a bank site), Safari lets you do that too. First, open Safari on your Mac, then browse to the websites you want to allow pop-ups for.

Next, click "Safari" in the menu bar and select "Preferences."

In Safari Preferences, click the "Websites" tab.

Scroll down in the "General" column and select "Pop-up Windows."

On the right, you'll see the list of websites open in Safari and the option "Block and Notify" set for each site. Use the drop-down menu next to a site and select "Allow." Repeat the same to allow pop-ups for the other websites on the list.

That's it! Close the Preferences window, and you're ready to go. When you're done, you might want to update Safari on Mac to make the best of the latest pop-ups blocker settings. Happy Browsing!

Related: How to Update Safari on Mac

Safari User Guide

  • Change your homepage
  • Import bookmarks, history, and passwords
  • Make Safari your default web browser
  • Go to websites
  • Find what you’re looking for
  • Bookmark webpages that you want to revisit
  • See your favorite websites
  • Use tabs for webpages
  • Pin frequently visited websites
  • Play web videos
  • Mute audio in tabs
  • Pay with Apple Pay
  • Autofill credit card info
  • Autofill contact info
  • Keep a Reading List
  • Hide ads when reading articles
  • Translate a webpage
  • Download items from the web
  • Share or post webpages
  • Add passes to Wallet
  • Save part or all of a webpage
  • Print or create a PDF of a webpage
  • Customize a start page
  • Customize the Safari window
  • Customize settings per website
  • Zoom in on webpages
  • Get extensions
  • Manage cookies and website data
  • Block pop-ups
  • Clear your browsing history
  • Browse privately
  • Autofill user name and password info
  • Prevent cross-site tracking
  • View a Privacy Report
  • Change Safari preferences
  • Keyboard and other shortcuts
  • Troubleshooting

block page in safari

Use Private Browsing in Safari on Mac

When you browse privately , the details of your browsing aren’t saved, and the websites you visit aren’t shared with your other devices.

Open Safari for me

Browse privately one time

When you use a private window:

Browsing initiated in one tab is isolated from browsing initiated in another tab, so websites you visit can’t track your browsing across multiple sessions.

Webpages you visit and your AutoFill information aren’t saved.

Your open webpages aren’t stored in iCloud, so they aren’t shown when you view all your open tabs from other devices.

Your recent searches aren’t included in the results list when you use the Smart Search field.

Items you download aren’t included in the downloads list. (The items do remain on your computer.)

If you use Handoff , private windows aren’t passed to your iPhone, iPad, iPod touch, or other Mac computers.

Changes to your cookies and website data aren’t saved.

Websites can’t modify information stored on your device, so services normally available at such sites may work differently until you use a non-private window.

Note: None of the above applies in non-private Safari windows you may have open.

Always browse privately

Click the “Safari opens with” pop-up menu, then choose “A new private window.”

block page in safari

Stop browsing privately

Delete any items you downloaded while using private windows.

Close any other private windows that are still open, to prevent other people from using the Back and Forward buttons to see pages you visited in them.

Besides using private windows, you can manage cookies and data stored by all websites and prevent cross-site tracking .

If you forget to use a private window, you can clear your browsing history .

COMMENTS

  1. How to Block a Website in Safari (with Pictures)

    Type in your website's URL. This should be the website you want to block; make sure you include all parts of the website's URL (e.g., "www.example.com" rather than "example.com"). 9. Tap Done. It's a blue button in the bottom-right corner of the keyboard. This will block your selected website in Safari. Method 2.

  2. How to Block a Website in Safari on iPhone and iPad

    From there, tap "Add Website" at the bottom of the screen. This is where you will enter the URL of the website you are going to block. On the Add Website page, type the URL of the website you want to block and then tap "Done" on the keyboard. At this point, you're all done, and the website is blocked. You can test this by heading over to Safari ...

  3. How to Block Websites in Safari on Mac

    How to block websites on Safari . You can block sites using Screen Time on Mac computers. Here's how: 1. Click the Apple icon, located in the top-left corner of the screen and select System ...

  4. How to Block Websites on Safari on Mac: 3 Best Ways

    To block a website, add the following line to the bottom of the file, replacing example.com with the URL of the website you want to block: 127.0.0.1 example.com. You can add as many websites as you want by creating a new line for each website. Press Control ^ + O to save the changes to the host's file.

  5. How to Block Websites on an iPhone (with Pictures)

    1. Open your iPhone's Settings. This is an app you'll find on one of your home screens, represented by a gray cog icon. If you don't see the icon, check the Utilities folder. Use this method only if you want to block access to all websites in Safari except those you add. [4]

  6. How to Block a Website on Safari

    Follow these steps to block websites on your iPhone's Safari app without Screen Time: Launch BlockSite. Tap Block Something . Type a URL in the search field. Select the site listed in the search results and tap Next . Set how many days and for how long you want the site to be blocked on your iPhone. Tap Next .

  7. How to Block Websites in Safari on iPhone and Mac

    Click on "Submit" once you are done. 2. Now, click on " WebBlock " at the top right corner. 3. Next, click the "+" button at the bottom left and add the URL of the website you want to block in Safari on your Mac. If you want to block all sites except a few, use the Allowlist feature. That's it.

  8. How to block a website on Safari

    7) At the top of the task bar, navigate over to the Web tab. Click on the Web tab. While in the tab, click on Try to limit access to adult websites and from there hit Customize. 8) In the ...

  9. How to block websites on iPhone and iPad

    1. Launch the Settings app on your iPhone or iPad and tap Screen Time. 2. Select Turn On Screen Time if it's not already on and follow the on-screen instructions to get set up. Otherwise, tap ...

  10. How to Block Websites in Safari on Mac: 3 Methods Explained

    Step #1. First of all, make a separate User Account for your children. Step #2. Then go to System Preferences on your Mac. Step #3. Click on Parental Controls. Step #4. Then click on the lock icon (shown at the bottom of the window.) Step #5.

  11. How to Block Websites in Safari Browser on your Mac, iPhone, and iPad

    Click on the Customize button to block any other website that you wish to restrict. Click on the "+" button under the Restricted section. Type the URL of the website to block or restrict from viewing in Safari. Furthermore, you can add as many sites as you want by again clicking the "+" button.

  12. How to Block Websites on iPhone and iPad in Safari

    How to block websites on an iPhone and iPad. There are various ways you can block websites on an iPhone so your child doesn't visit them. 1. Open the Settings app. 2. Scroll down and tap Screen ...

  13. How to block websites on iPhone and iPad

    To block everything and whitelist only specific sites in Safari, tap Add Website. Add the Title and URL of the website. Choose Back. (Image credit: Future/Apple) Keep unwanted content off your kids' devices. There you have three different ways to block websites on iPhone.

  14. How to Block Websites on Safari on Mac

    Using the down arrow key on your Mac, go to a new line and add the URL of the website you want to block, with the local IP address "127.0.0.1" before it, separated by a space. Be sure to add all the versions of the website on a new line, For example, "127.0.0.1 onlyfans.com" and "127.0.0.1 www.onlyfans.com".

  15. How to block websites on Chrome, Safari, and more

    Block a website: With the hosts file opened, navigate to the bottom of the file using your keyboard arrow keys. To block a specific website, type the following line: 127.0.0.1. Enter the URL you want to block next to the inputted line and press Return. Save the changes: Press Command + O to save the file.

  16. Manage cookies and website data in Safari on Mac

    Always allow cookies: Deselect "Block all cookies.". Websites, third parties, and advertisers can store cookies and other data on your Mac. Remove stored cookies and data: Click Manage Website Data, select one or more websites, then click Remove or Remove All. Removing the data may reduce tracking, but may also log you out of websites or ...

  17. Block pop-up ads and windows in Safari

    On your iPhone or iPad, go to Settings > Safari. Turn on Block Pop-ups. Turn on Fraudulent Website Warning. On your Mac, open Safari and choose Safari > Settings (or Preferences) from the menu bar. In the Websites tab, you can configure options to allow or block some or all pop-ups. In the Security tab, turn on the setting to warn when visiting ...

  18. Block pop-ups in Safari on Mac

    In the Safari app on your Mac, choose Safari > Preferences, then click Websites.. Click Pop-up Windows. Block pop-up windows for: A website in the list: Select the website in the right column, then choose the option you want. All websites that aren't currently customized: Click the "When visiting other websites" pop-up menu in the bottom-right corner of the pane, then choose the option ...

  19. How to Disable the Pop-Up Blocker in Safari on Mac

    Next, click "Safari" in the menu bar and select "Preferences." In Safari Preferences, click the "Websites" tab. Scroll down in the "General" column and select "Pop-up Windows." On the right, you'll see the list of websites open in Safari and the option "Block and Notify" set for each site. Use the drop-down menu next to a site and select "Allow."

  20. Better Browsing: 30 Hidden Tricks Inside Apple's Safari Browser

    Now, here are 30 tricks to help you have a better experience when using Safari. 1. Navigate Tab Bar. (Credit: Lance Whitney / Apple) The jump to iOS 15 moved Safari's address bar to the bottom of ...

  21. Clear the history, cache, and cookies from Safari on your iPhone, iPad

    Content blockers are third-party apps and extensions that let Safari block cookies, images, resources, pop-ups, and other content. To get a content blocker: Download a content blocking app from the App Store. Tap Settings > Safari > Extensions. Tap to turn on a listed content blocker. You can use more than one content blocker.

  22. Use Private Browsing in Safari on Mac

    Always browse privately. In the Safari app on your Mac, choose Safari > Preferences, then click General. Click the "Safari opens with" pop-up menu, then choose "A new private window.". If you don't see this option, choose Apple menu > System Preferences, click General, then make sure "Close windows when quitting an app" is selected.