How to Block Websites on Mac Easily: 5 Proven Ways

avatar
Norah Hayes
Updated on January 02, 2025 Preview 61.7K Preview 7
share it facebook share it Twitter

There are many good reasons to use the Internet, but there can also be good reasons to block certain parts of it. 

When you are using your Mac for work or school, social media sites and news sites can get you distracted. When your child uses your Mac or his or her own device, there is potential exposure to inappropriate sites.

By preventing access to certain websites, you can limit distractions and improve focus or protect your children from inappropriate content.

This article discusses how to block websites on Mac in five ways, covering all web browsers and macOS versions. It begins with a brief comparison of these methods.

 

A brief comparison

Here’s a brief comparison of different methods to block websites on Mac, helping you quickly identify the methods that suit your needs. You can then read on to choose the most suitable one.

  Use Screen Time Use Cisdem AppCrypt Use Terminal Use a router Use BlockSite
Ease of use Good Good Fair Good Good
Basic blocking features Yes Yes Yes Yes Yes
Advanced blocking options Yes Yes No Depends Yes
Supported browsers Safari Safari, Chrome, Edge, Opera, Brave All browsers All browsers Chrome, Firefox, Edge
Compatibility macOS 10.15 or later macOS 10.12 or later All macOS versions All macOS versions All macOS versions
Effectiveness Hard to bypass Hard to bypass Depends Depends Easy to bypass

 

Method 1. How to block websites using Mac’s Screen Time

Screen Time is a set of settings built into macOS Catalina 10.15 and later, offering two ways to block websites on Safari: one for permanent restrictions and another for time-based restrictions. To block websites on non-Safari browsers like Chrome, consider other methods.

Parents can set a Screen Time passcode to prevent their children from bypassing restrictions by changing the settings. If you are an adult who wants to block websites for yourself, consider asking a friend or family member to set the passcode for you.

Note: Setting a passcode is available for standard users on a Mac but not for administrators. If the person to be restricted is an administrator, this method may not be very effective. What if you want to set a passcode for an administrator? See this method.

Below is how to use this method.

Permanent restrictions

1. Open System Preferences or System Settings, depending on the macOS version used.

2. Choose Screen Time and turn it on.

A Screen Time window showing Use Screen Time Passcode, Content & Privacy, App Limits, and other options

3. Optionally, turn on Use Screen Time Passcode and set a passcode.

4. Choose Content & Privacy and enable it.

5. Choose Content Restrictions > Access to Web Content > Limit Adult Websites.

6. Click Customize. In the dialog that appears, click the Add icon in the Restricted section, type the website that you want to block, and click Done. Continue adding other unwanted sites.

A dialog showing a Restricted section and an Allowed Section

7. Click Done.

This will permanently block both the websites you have added and those that Apple deems aren’t appropriate for children and teens.

Tip: In step 5, there’s also an Allowed Websites Only option. Choosing this will block all websites except those you have added, which works as a whitelist.

 

Time-based restrictions

1. In Screen Time, choose App Limits and turn it on.

An App Limits window in Screen Time showing an Add Limit button

2. Click Add Limit.

3. In the Create a new app limit dialog, scroll to find and click Websites.

the Create a new app limit dialog showing a Websites option along with a green Add Website icon, and a Time section

4. Click the Add Website icon to add an unwanted site.

5. In the Time section, do one of the following:

  • Select Every Day and set a time limit, such as 1 hour and 30 minutes. This way, each day when this website has been assessed for 1 hour and 30 minutes, it will be restricted.
  • Select Custom, click Edit, and set limits for different days of the week based on your specific needs.

6. Turn on Block at End of Limit if this option is available.

If a Screen Time passcode is set, the Block at End of Limit option will be available, and blocking will be protected by the passcode. If there isn’t a passcode, the restriction can be bypassed easily.

 

Method 2. How to block websites on Mac using Cisdem AppCrypt

Cisdem AppCrypt is an easy-to-use app that helps you control access to websites in Safari, Chrome, Edge, and some other browsers. Its App Lock feature allows you to lock unsupported browsers.

The app provides both basic and advanced blocking options, such as blocking user-added websites, restricting all URLs that contain any user-specified keyword, allowing access only to certain sites, and scheduling.

It has password protection, which, unlike in Screen Time, is available for both administrators and standard users on Mac. For a Mac with multiple users, if needed, you can set up AppCrypt for each user so each can have personalized settings.

1. Download and install AppCrypt.

Free Download macOS 10.12 or later

2. When you launch the app for the first time, set a password.

To block your own access to certain websites, I recommend asking someone else to set the password for you.

a password setup screen showing a Password field, a Repeat field, and a Submit button

3. Click the lock icon in the menu bar and choose Open Main Window.

clicking the lock icon bringing up an Open Main Window option

4. Enter the password to access the app’s main window.

a password entry screen

5. Click the Web Block tab and do any of the following:

the Web Block tab showing an URL field, an Add button, an Import dropdown menu, a Block all websites option, and an Exceptions button, and more

  • To block a specific website, type it in the URL field and click Add.
  • To block URLs by keyword, type the keyword in the URL field and click Add.
  • To block websites by category, click the Import dropdown menu and select a category. For example, selecting Social Sites will add all popular social media sites to the block list. You can also import a text file with a list of websites to restrict.
  • To whitelist a certain website, enable Block all websites, click Exceptions, and add the site to the Always Allow list.

Now, the specified websites are blocked on all supported browsers, including normal and private/incognito browsing modes. There are several ways to unblock a website, such as quitting AppCrypt or removing it from the block list. However, all of them require the password, making the blocking effective.

Tip: Blocking is permanent by default. If you need flexibility, such as restricting websites only during work hours, you can use the Schedule feature (which applies to all restricted sites) or Custom Schedule feature (which applies to a specific site). For example, you can limit access to youtube.com only during 10:00 AM to 15:30 PM on weekdays.

a Custom Schedule dialog

 

Method 3. How to use Mac’s Terminal to restrict a website

The Terminal app comes with every Mac. This method involves using it to edit the hosts file, a system file that helps your Mac locate and access websites.

While the method can be simple for those who are tech-savvy, editing the hosts file can take some time, especially if there are many sites to block. If you are not very comfortable with technology, I suggest skipping this method.

The method allows only basic blocking and doesn’t offer features like keyword filtering or scheduling. The good news is that it’s device-based and applies to all browsers, such as Chrome, Safari, and Firefox.

Only people who know the administrator password can edit the hosts file. Therefore, if your children don’t know the password, they won’t be able to access blocked sites by changing your editing. However, note that blocking can be bypassed by using a VPN.

1. Open the Terminal app.

2. Enter sudo nano /etc/hosts and press the Return key.

3. Enter your administrator password when prompted and press the Return key. The hosts file will open.

4. Create a new line by moving the cursor to the end of the last line and pressing the Return key. Enter 127.0.0.1 facebook.com. Replace facebook.com with the site you want to restrict.

A Terminal window showing 27.0.0.1 facebook.com, 127.0.0.1 www.facebook.com, and a few other lines

5. Press the Return key to create another new line. Enter 127.0.0.1 www.facebook.com.

6. Press Control-O and then the Return key to save your changes.

7. Press Control-X to exit editing.

8. Optionally, enter sudo dscacheutil –flushcatch and press the Return key to clear your Mac’s memory of website addresses.

 

Method 4. How to configure your router to block websites on any device

If you have access to your router’s settings and it offers features like parental controls or content filtering, you can consider this method.

If you are on a work or school network, you may not have access to the settings. In such a case, you can ignore this method.

Since this method is network-based, it applies to all desktop and mobile devices, including Macs, and supports all browsers. However, if your or your child’s Mac connects to a different network, the blocking won’t take effect.

Some routers offer both basic and advanced blocking options, and some may not, depending on the brand and model. They are generally easy to configure, but if you are not very tech-savvy, you might want to consider more user-friendly methods. Also, using a VPN can bypass restrictions.

Below are general steps to use this method. To learn more, you can see this article.

1. Access your router’s settings. Enter your router’s IP address into a web browser and log in to the configuration page with the default or changed username and password.

If your children don’t know the login information, they can’t bypass blocking by changing the settings.

2. Find the blocking feature. Such a feature is typically called Parental Controls, Website Filter, or Content Filter.

A router settings screen showing a Select Categories section and a Blocked Websites section

3. Optionally, if there’s an option to create a profile first, you can create one if needed. This way, blocking will only apply to the Mac specified in that profile, while other devices on the same network are not restricted.

4. Block unwanted websites by specifying the URLs, keywords, or categories.

 

Method 5. How to use BlockSite for browser-based website restrictions

This method uses a website-blocking browser extension like BlockSite, which only put restrictions on the browser where the extension is installed.

Available for Chrome, Firefox, and Edge, BlockSite is easy to use and feature rich, allowing you to easily block specific URLs, keywords, and even certain categories. There’s a schedule feature to offer flexibility. However, it’s unfortunate that it does not support Safari.

BlockSite provides a Password Protection feature to help prevent bypassing. However, your child or you can still remove restrictions by disabling or uninstalling the extension. Luckily, there’s an option that, when enabled, will send an email to the parent to inform the uninstallation.

1. Add BlockSite to your browser.

2. In the Block Sites tab, click Add to Block List.

the Block Sites tab showing an Add to Block List button and a Schedule button

3. In the Add to Block List dialog, do any of the following:

the Websites tab showing youtube.com added to the Websites to Block list

  • Click the Websites tab, type an unwanted website, and click the Add icon.
  • Click the Keywords tab, type a specific keyword that you’d like to limit, and click the Add icon.
  • Click the Categories tab, click the Add icon next to an undesirable category, such as Adult, Social, or Gambling.

4. Optionally, click Schedule to activate blocking only during certain times.

5. In the Password Protection tab, set a password. This way, it will require a password to access blocked sites.

To use this extension on multiple browsers, install and set up it for each browser.

 

Conclusion

This article discusses five ways to block websites on Mac, providing step-by-step instructions for each. If you prefer a built-in free solution, consider methods 1 and 3. For a user-friendly method, methods 1, 2, and 5 can be good options. If you want to make blocking hard to bypass for administrators or standard users or both on a Mac, method 2 is the best choice.

avatar
Norah Hayes

Norah Hayes likes to share her tips on how to improve focus and stay motivated at work. She believes it is essential to eliminate all online distractions during work hours.

Loved the article, share!
Comments (7) Leave a Reply

Name *

Comment *

  • monkey

    Only Safari respects Screen Time blocks.

    1 years ago commonReply

    Name *

    Comment *

  • Martin Keiper

    Although mac has its built in features to block sites, i think they're time-consuming. I choose to use third-party tool directly. It saved me lots of time and is easy to use. The app recommended in this post is very effective at cutting down the screen time on my mac. Thanks!

    2 years ago commonReply

    Name *

    Comment *

  • Richard Bright

    What I dislike about Parental Controls is that you can't set them up for an administrator account. Screen Time is much better in that regard. But Screen Time's Limit Adult Websites blocks certain normal sites and pages that I need. The first method is better. It does no automatic blocking.

    3 years ago commonReply

    Name *

    Comment *

  • Darren

    I loved your post!!! exactly what I wanted. This will be useful to help my son get rid of the addiction from Internet. My son can't inadvertently click on any of these sites now.

    8 years ago commonReply

    Name *

    Comment *

  • William

    Hello, thank you for posting this, it's been really helpful so far! I was just wondering, does anyone know of a way to block specific google searches and not google entirely?

    8 years ago commonReply

    Name *

    Comment *

    • Susan

      There is no way to block specific google searches I think.

      8 years ago
  • Gina

    With these methods recommended in this article, I can block any websites I want to be blocked, and the app recommended to lock apps is really wonderful

    9 years ago commonReply

    Name *

    Comment *

Hot Articles

Safari Parental Controls on Apple Devices: Make Safari Safe for Kids How to Password Protect Evernote App, Note and Notebook How to Block Porn on Safari on Mac, iPhone and iPad Easily
Home > How to Block Websites on Mac Easily: 5 Proven Ways