Home > Block Social Media > How to Block YouTube on Mac for Your Kids or Yourself

How to Block YouTube on Mac for Your Kids or Yourself

Updated on May 27, 2026 Preview 68.5K Preview 4
share it facebook share it Twitter
No robots used, this article has been written and edited by our team under strict editorial guidelines.
avatar
Written by Norah Hayes
avatar
Approved by Ethan Long

While YouTube is a great platform to watch videos, it can be distracting, and some videos may be inappropriate for children and teens. So you may want to restrict YouTube access for productivity or parental control purposes.

In this article, I will show you how to block access to YouTube on Mac, including how to block the entire website, restrict specific videos and searches, and more.

 

Method 1. How to block YouTube entirely or partially on Mac with a password using AppCrypt

Applies to: macOS Sierra 10.12 or later

Supported browsers: Safari, Chrome, Edge, Opera, and Brave (with an option to lock unsupported browsers)

This method uses AppCrypt, a website blocker and app locker in one. It's easy to use and versatile. As a YouTube blocker, it does the following:

  • Restrict youtube.com entirely
  • Block specific videos and search terms added by you
  • Make all Shorts videos inaccessible
  • Schedule blocking to be active permanently or only specific hours
  • Protect blocking with a password

Here are the steps.

1. Download and install AppCrypt.

Free Download macOS 10.12 or later

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

Note If you aim to prevent yourself from using YouTube, I recommend that you ask someone else, like a family member, to set the password for you.

Cisdem AppCrypt's password setup screen

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

clicking the lock icon in the menu bar bringing up an Open Main Window option along with four other options

Then, enter the password to access the app's main window.

a password entry screen

4. In the Web Block tab, do any of the following based on your needs:

the Web Block tab showing a list of websites including youtube.com

  • Enter youtube.com in the URL field, then click Add. This will block this platform entirely.
  • To block specific videos only, simply add video IDs one by one. For example, the ID for this video (https://www.youtube.com/watch?v=1yTXr5bX2wQ) is "1yTXr5bX2wQ".
  • To prevent certain words (e.g., “sexy” or “suicide”) from being searched on YouTube, add these words one by one.
  • To make all Shorts videos inaccessible, add https://www.youtube.com/shorts/.

From now on, YouTube or the specified content will be blocked in all supported browsers on this Mac, in both regular and private/incognito browsing. (Lock unsupported browsers if needed.)

It requires a password to quit or uninstall this YouTube blocker, modify its settings, or do other bypassing attempts. Therefore, this method is effective and difficult to bypassing.

Tip 1: Block YouTube at certain times By default, the blocking is permanent. What if you want to stop YouTube access only during work or homework hours? Just select youtube.com in the Web Block tab, click the small clock icon that appears, turn on "Custom Schedule", and then add schedules based on your needs.

a schedule dialog showing a Custom Schedule option and scheduling settings

Tip 2: Allow only specific videos Want to restrict access to YouTube except a few videos on it, say, some educational videos? Just add youtube.com to the Web Block tab, click "Exceptions" in the bottom right corner, and then add IDs of allowed videos to the Always Allow list.

an Always Allow list

 

Method 2. How to Block YouTube in Safari on Mac with Screen Time

Applies to: macOS Catalina 10.15 or later

Supported browser: Safari

If you need to limit YouTube only in Safari, this method can be the best choice.

The method uses Screen Time, which is built-in to macOS Catalina and later and free to use. With it, you can easily restrict access to unwanted websites in Safari. Non-Safari browsers like Chrome is not supported.

If you are using this method for your children, I recommend setting a Screen Time passcode. Without knowing the passcode, your children won't be able to access Screen Time settings. This way, they can't bypass restrictions by changing your settings.

Note Setting a Screen Time passcode is suitable only for the non-administrator user account on a Mac. If the person you want to restrict YouTube for does need to be an administrator but you still want passcode protection, the first method can be a better choice.

1. Go to System Settings (or System Preferences in earlier macOS versions).

2. Choose Screen Time in the left sidebar and turn it on.

Screen Time interface showing several categories of settings including the Content & Privacy category

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

4. Choose Content & Privacy and enable it.

5. Click Content Restrictions.

6. In the dialog that appears, click the pop-up menu next to Access to Web Content and select Limit Adult Websites.

7. Click the Customize button that appears.

8. Click the Add icon in the Restricted section, enter youtube.com in the URL field and click Done, click Done.

a dialog showing a Restricted section and a Done button

9. Click Done.

Now, YouTube is restricted in Safari on this Mac, and Safari's private browsing mode is disabled, making sure that this website can't be opened by this browser.

 

Method 3. How to restrict YouTube in Chrome, Firefox, and Edge on Mac

Applies to: All macOS versions

Supported browsers: Chrome, Firefox, and Edge

This method uses a browser extension called BlockSite. It's easy to set up and feature-rich. Like AppCrypt, it lets you set YouTube to be restricted all the time or only during specific hours. In addition, its Focus Mode allows you to set the website to be automatically blocked and unblocked based on a Pomodoro timer.

However, despite its Password Protection feature, BlockSite can be easily disabled or removed from a browser. Therefore, if you are looking for a strict way to prevent your children or yourself from using YouTube, this method is not ideal.

Note Blocking only applies to the browser on which BlockSite is installed. Therefore, if you use both Chrome and Firefox or Edge, you need to install and set up the extension on both browsers.

The following steps use Chrome as an example to show you how to use the method.

1. Go to Chrome Web Store and install BlockSite.

2. Click the extension's icon in the toolbar of your Chrome and then the setting icon in the top right corner.

3. On the page that opens, click Add to Block List.

BlockSite page showing an Add to Block List button on the right and several tabs on the left

4. Type “youtube” in the Type field and click the Add icon next to the youtube.com option that automatically appears. Click Done.

a screen showing a Type field and a Websites to Block list, with youtube.com in the list

5. Control-click the BlockSite icon in the toolbar and choose Manage Extension. Enable Allow in Incognito on the page that opens.

Now YouTube is blocked in Chrome on this Mac. Even using the incognito mode can't bypass the blocking.

 

Method 4. How to block YouTube by editing Mac's hosts file in Terminal

Applies to: All macOS versions

Supported browsers: All web browsers

This method involves editing the hosts file (a system file on your Mac) using Terminal (an app built into macOS). The biggest advantage of this method is that blocking will apply to all browsers. However, there are three potential disadvantages.

  • The method is not suitable for those who are not comfortable with technology. However, if you are tech-savvy or familiar with command line interfaces, you can definitely try it.
  • It's not very effective for the administrator user on a Mac, since knowing the administrator password makes it easy to undo the blocking by editing the hosts file.
  • If an VPN is often used on the Mac, this method is not recommended. This method will stop working when there's a VPN.

1. Open the Terminal app on your Mac.

2. Type “sudo pico /etc/hosts” and press the Return key.

3. Enter the administrator password and press the Return key. Now the hosts file opens.

a command line interface showing lines like "Host Database", "127.0.0.1 youtube.com", and more

4. Use the Down Arrow key to go to the bottom of the file and add the following two lines.

127.0.0.1 youtube.com

127.0.0.1 www.youtube.com

5. Press Ctrl + O and then the Return key to save the changes.

6. Press Ctrl + X to exit editing.

From now on, no browsers on this Mac will be able to open YouTube.

 

Method 5. How to configure your router's settings to block YouTube on Mac

Applies to: All macOS versions

Supported browsers: All web browsers

This method requires you to configure the settings of the router to which your Mac is connected. If you can't access the router's settings, this method is not available.

Note Whenever your Mac is on a different network, this method will stop working. In addition, as with Method 4, using a VPN can bypassing the blocking.

If you do have access to the settings, you can consider this method. Since routers can differ in features and options, I only provide general steps here.

1. Visit your router's settings page in a browser. Then log in with the username and password or password only, depending on your router.

Tip The easiest way to find your router's settings page address and the default login information is to look at the back of your router.

2. Find a feature called Parental Controls, Firewall, Web Filtering, or something similar.

If your router doesn't offer a website blocking feature, this method is not available.

a router settings screen showing a Parental Controls tab on the left and a short description on blocking online content

3. Optionally, create a dedicated profile and add your Mac to it.

(If your router doesn't support profiles, the blocking will apply to all devices connected to it. If so, there's no need to manually add your Mac.)

4. Add youtube.com to the block list.

a Blocked Websites dialog showing two websites, including youtube.com

5. Save your settings.

When your Mac is connected to this network, YouTube will be blocked in all browsers on it, such as Safari and Chrome.

Note If you are using the method for yourself instead of a child, then I recommend that you ask someone else to set a new login password.

 

Wrapping up

If you find yourself easily distracted by YouTube when using your Mac for work, or if you catch your children using the machine to watch YouTube videos instead of helping with their homework, you can block the platform. There are several ways to block YouTube on Mac. If you want to make sure that restrictions can't be easily bypassed, choose methods that offer password protection.

About the authors
avatar
Written by 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.

avatar
Approved by Ethan Long

Ethan Long joined Cisdem in 2015 as a developer and now serves as the editorial advisor for Cisdem AppCrypt. He actively tests and uses Cisdem AppCrypt and other screen-time management tools to ensure AppCrypt meets its promises in real-world scenarios.

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

Name *

Comment *

  • Josef Lechle

    I’d highly recommend this YouTube blocker app recommended in first methods. It’s perfect for stopping myself from YouTube addiction!

    3 years ago commonReply

    Name *

    Comment *

  • AnitaJM

    I think I'm addicted to YouTube. I spend hours watching YouTube videos everyday and can't stop myself. A YouTube blocker app is what I need. Hopefully I will spend my time more productively.

    5 years ago commonReply

    Name *

    Comment *

  • Arathorn

    I'm finding a software to block my YouTube App, AppCrypt is exactly what I want.

    10 years ago commonReply

    Name *

    Comment *

  • Serina

    very detailed article, this article recommends four solution to block YouTube, it is useful to me

    10 years ago commonReply

    Name *

    Comment *

January 10, 2025
How to Block a Website on Chrome (Windows, Mac, Android, iOS)
January 20, 2026
How to Block YouTube Channels from Feed or Being Watched
January 13, 2026
How to Limit YouTube Time on Computer on Chrome and Safari
December 15, 2025
7 Apps That Limit Social Media Time for Children and Adults