How to Block YouTube

Learn the easiest ways to completely block YouTube on any browser, computer, phone, and tablet

Do you want to prevent your child, students, or even yourself from accessing YouTube? There are many ways to block YouTube, and they're all pretty easy to do. If you're using an Apple device like an iPhone, iPad, or Mac, you can block YouTube completely on all browsers using Screen Time. On Windows, you can edit a text file that blocks YouTube in Chrome, Edge, and any other browser. On an Android, you can block YouTube using the free apps BlockSite and Norton App Lock. This wikiHow article will teach you the easiest ways to block and the YouTube mobile app on any platform.

[Edit]Things You Should Know

  • The easiest way to block YouTube on all PC web browsers is to add YouTube to your Windows hosts file.
  • Use Content Restrictions in Screen Time to block YouTube and any other app or site on iPhone, iPad, and Mac.
  • If you're using BlockSite on Android, anyone can get around your YouTube restrictions unless you lock the app with Norton App Lock.


[Edit]On Windows

  1. Open Notepad as an administrator. The most effective way to block YouTube completely in all web browsers is to add a few lines to a text file called "hosts," which you can edit in Notepad. Because the hosts file is protected, you'll have to open Notepad in a special way to edit the file: Here's how:
    Block YouTube Step 1 Version 5.jpg
    • Press Windows key + S to activate the search bar.
    • Type , but don't click any search results.
    • Right-click "Notepad" and select Run as administrator.
    • Click Yes to open the app.
  2. Press to open a file. You can also get to the Open window by clicking File > Open.
    Block YouTube Step 2 Version 5.jpg
  3. Navigate to the folder that contains your hosts file. If Windows is installed on your C drive, navigate to C:\Windows\System32\drivers\etc. If your Windows installation has a different drive letter, replace C with the correct letter.
    Block YouTube Step 3 Version 5.jpg
    • Don't be alarmed if the folder appears empty, as the files are hidden right now.
  4. Click the drop-down menu at the bottom-right and choose . This displays all of the files in the "\etc" folder.
    Block YouTube Step 4 Version 5.jpg
  5. Select the file called "hosts" and click . This opens the hosts file for editing.
    Block YouTube Step 5 Version 5.jpg
  6. Add a new line at the bottom of the file to block . After the last line in the file, press Enter to create a new line. Then, follow these steps:
    Block YouTube Step 6 Version 5.jpg
    • Type and press the Tab key to insert some space.
    • Type
    • Press Enter to go to the next line.
  7. Add another new line to block . You'll do this the same way you did when blocking :
    Block YouTube Step 7 Version 5.jpg
    • On the first empty line, type and press the Tab key to insert some space.
    • Type
    • Press Enter.
  8. Add another line to block . This is YouTube's mobile address, so you'll want to block this as well.
    Block YouTube Step 8 Version 5.jpg
    • On the first empty line, type and press the Tab key to insert some space.
    • Type
  9. Save your "hosts" file. Now you can simply press Ctrl + S to save, or click File > Save.
    Block YouTube Step 9 Version 5.jpg
  10. Flush your DNS cache so the changes will take effect. Until you do this, you'll still be able to access YouTube through any web browsers you've used the site in recently. The easiest way to do this is to restart your computer. If you don't want to restart right now, you can also flush your DNS cache by running a simple command:
    Block YouTube Step 10 Version 5.jpg
    • Press Windows key + S to activate the search bar.
    • Type .
    • Right-click Command Prompt and select Run as administrator.
    • Type and press Enter.

[Edit]On a Mac

  1. Go to System Settings. To block YouTube in all browsers on a Mac, you can restrict the site in your Screen Time settings. To get to System Settings, click the Apple menu icon in the top left corner of your screen and select System Settings.
    Block YouTube Step 11 Version 5.jpg
  2. Click . You should see this in the menu on the left side of the window next to an hourglass icon on a purple background.
    Block YouTube Step 12 Version 5.jpg
    • If you're using Family Sharing, click the family member that you'd like to block from seeing YouTube.
  3. Click . You'll see this in the menu on the left side of the screen.
    Block YouTube Step 13 Version 5.jpg
  4. Click . This will give you more options.
    Block YouTube Step 14 Version 5.jpg
  5. Select . YouTube isn't considered an "adult website," but you'll be preventing it in the next step.
    Block YouTube Step 15 Version 5.jpg
  6. Click . You'll see this under the "Web Content" selections.
    Block YouTube Step 16 Version 4.jpg
  7. Click under the "Restricted" section. Doing this will let you select YouTube as a restricted site.
    Block YouTube Step 17 Version 4.jpg
  8. Enter "" and click . Doing this will prevent YouTube from opening in any web browser on your Mac.[1]
    Block YouTube Step 18 Version 2.jpg

[Edit]On iPhone & iPad

  1. Open your iPhone or iPad's Settings. There are a few different ways you can block YouTube on your iPhone, but using Screen Time is the most straightforward way that blocks the YouTube app and YouTube in your iPhone's web browsers. Tap the Settings app icon, which is a grey box with gears on it.
    Block YouTube Step 19 Version 2.jpg
  2. Tap . It's the purple icon with an hourglass in the second group of settings.
    Block YouTube Step 20 Version 2.jpg
    • If Screen Time is not enabled, tap Turn on Screen Time to enable it now. Then, complete the setup process to activate Screen Time.
  3. Tap . It's at the bottom of the list.
    Block YouTube Step 21 Version 2.jpg
    • Enter your PIN if prompted.
  4. Enable Content & Privacy Restrictions if disabled. If the switch at the top of the menu is gray, tap it to enable the feature.
    Block YouTube Step 22 Version 2.jpg
  5. Tap . It's in the first group of settings.
    Block YouTube Step 23 Version 2.jpg
  6. Block the YouTube mobile app for a child (optional). If you want to prevent a child from opening or downloading the YouTube app (or any other apps that require the user to be of a certain age) on this iPhone or iPad, you can block the app easily:
    Block YouTube Step 24 Version 2.jpg
    • Tap Apps in the list.
    • Select 12+ (or younger) as the age. Since YouTube has an age suggestion of 17+, it won't be possible for your child to open the app if they're under age. The app won't even appear on their screens.
    • To undo this restriction in the future, return to this menu and select Allow all apps.[2]
    • Tap the Back button when you're finished. You've blocked the YouTube app, but what about YouTube in a web browser? Let's fix that.
  7. Tap . It's under the "Web Content" header a bit further down the page.
    Block YouTube Step 25 Version 2.jpg
  8. Tap . YouTube isn't considered an adult website, but turning this feature on allows you to add block YouTube's URL.
    Block YouTube Step 26 Version 2.jpg
  9. Tap under "Never Allow." Make sure you are tapping the option under "Never Allow," and not "Always Allow."
    Block YouTube Step 27 Version 2.jpg
  10. Add all of YouTube's URLs to your block list. Here's how:
    Block YouTube Step 28 Version 2.jpg
    • Type and press done}}. Now you'll see in your "Never Allow" list.
    • Tap Add Website under "Never Allow" again.
    • Type and tap done.
    • Tap Add Website again, type , and then tap done.

[Edit]On Android

  1. Install BlockSite and Norton App Lock. To block both the YouTube website and the YouTube app on your Android, you will need to download two apps: BlockSite, which blocks YouTube, and an app called Norton App Lock, which can password-protect BlockSite to prevent anyone from undoing the block.
    Block YouTube Step 35.jpg
    • Both Norton App Lock and BlockSite are available for free from the Play Store.
    • Also, if you deleted the YouTube app, you'll need to reinstall it for now so you can block it. You can always remove it later.
  2. Open BlockSite. Press the Home button to close the Play Store, then tap the BlockSite app icon, which is an orange shield with a white cancel sign on it.
    Block YouTube Step 36.jpg
  3. Enable BlockSite in your Android's Accessibility settings when prompted. For BlockSite to be able to access your apps, it will need certain permissions. When prompted, follow the on-screen instructions to allow the app to control your apps.
    Block YouTube Step 37 Version 2.jpg
  4. Tap in BlockSite. It's in the bottom-right corner of the screen.
    Block YouTube Step 38 Version 2.jpg
  5. Enter YouTube's address. In the text box at the top of the page, type in to indicate that you want to prevent your Android's built-in browsers from accessing YouTube.
    Block YouTube Step 39 Version 2.jpg
    • Unlike many content blockers, you don't have to block the mobile version of YouTube's website ("") as well.
  6. Tap . It's in the top-right corner of the screen. This will block YouTube in your Android's Chrome browser and any other built-in browsing app(s).
    Block YouTube Step 40 Version 2.jpg
    • If you have any third-party browsing apps installed (e.g., Firefox), you'll need to lock them with Norton App Lock to prevent your child from accessing YouTube in them since BlockSite doesn't cover these apps.
  7. Tap again. This is in the bottom-right corner of the screen.
    Block YouTube Step 41 Version 2.jpg
  8. Tap the tab. It's at the top of the screen. A list of apps will open.
    Block YouTube Step 42 Version 2.jpg
  9. Scroll down and tap . It's in the list of apps. Doing so adds the YouTube app to the list of blocked apps on your Android.
    Block YouTube Step 43 Version 2.jpg
  10. Open Norton App Lock. Press the Home button, then tap the Norton Lock app icon which is a yellow-and-white circle with black icons in it.
    Block YouTube Step 44 Version 2.jpg
  11. Follow the on-screen instructions to give Norton App Lock the right permissions. Like BlockSite, you'll need to grant access to Norton Lock. Tap Setup, then follow the on-screen instructions to enable access for the app.
    Block YouTube Step 46 Version 2.jpg
  12. Create an unlock code and tap . When the Norton Lock app re-opens, draw a pattern, then repeat the pattern when asked. This is the code you'll use to unlock any apps you lock later.
    Block YouTube Step 47 Version 2.jpg
    • If you want to use a passcode instead of a pattern, tap SWITCH TO PASSCODE and enter twice your preferred passcode instead.
  13. Lock the apps you don't want your child to modify. Scroll down and tap each of the following apps to prevent them from being accessed without your passcode:
    Block YouTube Step 49.jpg
    • BlockSite
    • Play Store
    • Any web browser not covered by BlockSite (e.g., any non-Chrome or stock browser such as Firefox or UC Browser).
    • Norton Lock will also lock Settings and the Norton Lock app by default. As long as the Play Store is also locked, this will make it impossible to access YouTube without the code.



  • You can also block YouTube via the BlockSite extension in Google Chrome and Firefox if needed. This will not block YouTube in browsers such as Safari, Edge, or Internet Explorer.


  • No blocking method will be 100% effective, especially if your child is tech-savvy. Make sure to take the time to educate your child on what is and is not allowed.

[Edit]Related wikiHows


Powered by Drupal - Design by artinet