• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

AppleToolBox

Tools and Fixes for Mac, iPad, iPhone & iWatch

Search posts

  • About
  • Contact

CONNECT WITH US

CATEGORIES

  • iPhone
  • iPad
  • iPod
  • Apple Watch
  • Mac/MacBook
  • AirPods
  • Apple TV
  • News
  • Apple Services
  • HomePod
  • Reviews

SITE

  • Home
  • About Us
  • Contact
  • Advertise

Search posts

You are here: Home / Mac / How to Block Websites on Mac: 4 Easy Ways

How to Block Websites on Mac: 4 Easy Ways

By Danny Maiorca 1 comment Last updated April 17, 2023

You might want to block websites on your Mac for several reasons. Maybe you want to stop your children from accessing sites they shouldn’t be on, or perhaps you want to enjoy higher levels of productivity – but you find that you constantly get distracted when you sit down to work.

Related Reading:

  • The Best Safari Ad Blockers for macOS and iOS
  • How to Block Spam Calls, Texts, and Emails on Your iPhone
  • How to Turn Websites Into Desktop Apps on macOS
  • Why Is an App or Website Asking Me to Sign In With My Apple ID?
  • How to Remove a Website From Safari’s “Never Save” Password Setting

Regardless of why you want to block certain websites on your computer, you’ve got a selection of options you can try. And in this guide, you’ll discover some of the top ways to restrict access to different sites on your Mac.

Contents

  • 1. Use Downtime on Your Mac to Block Websites
  • 2. How to Block Websites Using Terminal
  • 3. Restrict Websites Via the Content & Privacy Feature
    • How to Block Inappropriate Websites
    • How to Only Allow a Specific Set of Websites
  • 4. Use a Third-Party Website Blocker
  • Restrict Access to Websites on Your Mac Whenever You Feel Is Necessary

1. Use Downtime on Your Mac to Block Websites

Sometimes, you might only want to block websites for certain times each day. Social media could be one example, and YouTube could be another. These platforms can lead to you not completing the level of work that you’d typically like to do, but you may not notice adverse effects when you access them during your free time.

For websites that you only want to block intermittently, you might find that Downtime is the best tool for the job. You’ll need to switch on Screen Time if you want to use it, but you can find the complete list of steps that you should follow below.

1. Open System Settings and go to Screen Time.

Downtime Turn on in Screen Time macOS Screenshot

2. Switch the Screen Time toggle on.

3. Go to Downtime and switch the toggle on here as well.

Downtime Mac Screenshot

4. Choose between Every Day or Custom from the Schedule dropdown menu, depending on what you want to use.

Mac Schedule Downtime Screenshot

5. Customize your Downtime schedule however you want.

When you turn on Downtime, you’ll block all websites and apps that you don’t allow. You’ll see a timer icon with the message displaying that you’ve reached your limit.

2. How to Block Websites Using Terminal

If you’re comfortable with using Terminal on your Mac for various commands, you can also set up a website block list with it. Just follow these steps.

  1. Open Terminal with Applications > Utilities from your Dock or with Finder open click Go > Utilities from the menu bar and choose Terminal.
  2. Copy and paste or type the command below and then hit Return.
sudo pico /etc/hosts
  1. Enter your Mac user password and hit Return.
Enter the hosts file in Terminal
Enter the hosts file in Terminal
  1. Go to the bottom using your arrow key and type: 127.0.0.1 followed by a space and then the website you want to block. Hit Return. List each site on a separate line. (See screenshot below.)
  2. Press Control + O (capital letter O) and hit Return to save.
  3. Press Control + X to close nano.
  4. Close the Terminal window.
Blocked websites with Terminal on Mac
Blocked websites with Terminal on Mac

Now, when you open a browser and go to one of the sites you listed in Terminal, you should be blocked from accessing it.

Blocked website in Safari on Mac
Blocked website in Safari on Mac

3. Restrict Websites Via the Content & Privacy Feature

If you have children who use your Mac, restricting explicit content is a good idea. You’ve got two options here; you can either restrict only inappropriate websites, or you can make a specified list of websites that you’ll approve access to.

How to Block Inappropriate Websites

To block inappropriate websites only, follow these steps.

1. Go to System Settings > Screen Time.

2. Select the Content & Privacy tab.

Mac Content and Privacy Tab Screenshot

3. Switch the Content & Privacy toggle on. Then, go to the Content Restrictions tab.

Content and Privacy Toggle Mac Screenshot

4. Expand Access to Web Content and click on Limit Adult Websites.

Limit Website Access Mac Screenshot

How to Only Allow a Specific Set of Websites

To only allow a specific set of websites, you can follow these instructions instead.

1. Go to System Settings > Screen Time > Content & Privacy.

Mac Content and Privacy Tab Screenshot

2. After toggling Content & Privacy on, click on Content Restrictions.

Mac Content Restrictions Screenshot

3. Expand the dropdown menu next to Access to Web Content. Here, choose Allowed Websites Only.

Allowed Websites Only Mac Screenshot

4. Click on Customize.

5. Hit the + icon to allow websites to be accessed on your Mac. Every other site will be blocked.

Add Websites for Access on Mac Screenshot

4. Use a Third-Party Website Blocker

In addition to using the different settings on your Mac, you can also try using third-party website blockers. Some are better than others, but Cold Turkey is one site blocker you should consider checking out. Another worth thinking about is 1Focus.

When using a third-party website blocker, you should have access to tools that allow you to restrict access for certain periods of time. On top of that, you can often access free versions – though you won’t be able to use as many features as you would with a paid plan or one-time purchase.

When looking for a third-party website blocker on your Mac, find one that’s difficult to uninstall or reverse. Some are harder to unblock in this respect, and if you have limited willpower, putting more barriers in place will help keep you on track.

Restrict Access to Websites on Your Mac Whenever You Feel Is Necessary

As you can see from this guide, you’ve got plenty of options when it comes to blocking websites on your Mac. Apple has added a selection of useful tools to help you stay on track in recent years, and these are an ideal starting point. In addition to blocking sites on your Mac via these means, you can share your settings across your iPhone and iPad as well.

In addition to using the website-blocking features on your Mac, you’ll find a broad range of options elsewhere. It’s worth looking at different third-party website blockers, as these can add an extra layer of friction and stop you from removing the restrictions you’ve put in place.

Related Posts:

  • pexels-erik-mclean-4061973
    The Best Safari Ad Blockers For macOS and iOS
  • Spam Call on iPhone
    How to Block Spam Calls, Texts, and Emails on an iPhone
  • 2023 Mac Studio lifestyle - 1
    How Do I Delete Texts and iMessages on My Mac?
  • A problem occurred with this webpage so it was reloaded, fix
    Can’t Clear the Browsing History in Safari on Your…
  • 2022 Mac Mini with Studio Display and Accessories
    Mac Tips For New Users In 2023
  • Screenshot showing the Safari icon on an Apple device
    Safari Quick Website Search: What It Is and How to Use It
  • photo of an iphone with ios 16 downloaded on it
    iOS 16 Tips and Tricks: The Definitive List
  • iphone and airpods on a table
    These Apps Have the Best iOS 17 Widgets
  • iPhone on table
    Seeing 'Spam' or 'Fraud Risk' on Your iPhone Caller…
Danny Maiorca

Danny has been a professional writer since graduating from university in 2016, but he’s been writing online for over a decade. He has been intrigued by Apple products ever since getting an iPod Shuffle in 2008 and particularly enjoys writing about iPhones and iPads. Danny prides himself on making complex topics easy to understand. In his spare time, he’s a keen photographer.

Reader Interactions

Write a Comment Cancel reply

Show 1 Comments

  1. Shana says

    April 19, 2023 at 11:49 AM

    The Allowed only websites feature does not work. It does not save the websites you want your children to use only.

    Reply

Primary Sidebar

Recent Posts

  • What to Do When Windows 11 Won’t Detect Your iPad
  • Outlook Outage 2026: iPhone Fixes for Sign-In Chaos
  • Guide to Changing iMessage Backgrounds on iPhone and Mac
  • Has Apple Killed Vision Pro? (Insane Sales Flop Explained)
  • 5 Great Apps for Staying Organized on Your iPhone
  • What Are iPhone Antennas and Do You Need One?

Connect with us

Footer

ABOUT

  • About Us
  • Contact us
  • Advertise
  • Privacy
  • Terms of Use

GUIDES

  • iOS & iPadOS
  • Apple ID
  • iCloud
  • App Store
  • iTunes
  • FaceTime
  • iMessage
  • Siri
  • Books and iBooks
  • Game Center
  • AirPlay

CONNECT

  • Facebook
  • Twitter
  • FeedBurner
  • YouTube

© Copyright 2010-2024 Guiding Tech Media · All Rights Reserved

This site and its content are in no way affiliated or endorsed by Apple, Inc. · Reproduction without explicit permission is prohibited

Last Updated on April 17, 2023 by Mitch Bartlett