Home Social Media how to block youtube

how to block youtube

how to block youtube

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

Do you want to block your kids, students, or even yourself from accessing YouTube? There are several ways to block YouTube, and they are all very easy to do. If you’re using an Apple device like an iPhone, iPad, or Mac, you can completely block YouTube 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 Android, you can block YouTube using the free apps BlockSite and Norton App Lock. This wikiHow teaches you the easiest way to block YouTube.com 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 AppLock.


[Edit]on windows

  1. Open Notepad as administrator. The most efficient way to completely block YouTube in all web browsers is to add a few lines to a text file called “hosts” that you can edit in Notepad. Because the hosts file is protected, you 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 a search result.
    • right click Select “Notepad” and run as administrator,
    • Click Yes to open the app.
  2. Press to open the file. You can also go 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:WindowsSystem32driversetc. If your Windows installation has a different drive letter, change C with the correct letter.
    Block YouTube Step 3 Version 5.jpg
    • Don’t be concerned if the folder appears empty, as the files are hidden for now.
  4. Click and select the drop-down menu at the bottom-right. This displays all the files in the “etc” folder.
    Block YouTube Step 4 Version 5.jpg
  5. Select and click the file named “hosts”. This opens the hosts file for editing.
    Block YouTube Step 5 Version 5.jpg
  6. Add a new line to block at the bottom of the file. press after last line in file enter to create a new line. Then, follow these steps:
    Block YouTube Step 6 Version 5.jpg
    • type and press tab key to insert some space.
    • Type
    • Press enter to go to the next line.
  7. Add another newline to block. You’ll do this the same way you did when you blocked:
    Block Youtube Step 7 Version 5.jpg
    • type on the first blank line and press 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 that as well.
    Block Youtube Step 8 Version 5.jpg
    • type on the first blank line and press tab key to insert some space.
    • Type
  9. Save your “hosts” file. now you can just press ctrl + s to save, or click file , save,
    Block Youtube Step 9 Version 5.jpg
  10. Flush your DNS cache for the changes to take effect. Until you do, you’ll be able to access YouTube through any web browser you’ve been using the site until recently. The easiest way to do this is to restart your computer. If you don’t want to restart 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 choose run as administrator,
    • type and press enter,

[Edit]on a mac

  1. Go to System Settings. To block YouTube in all browsers on Mac, you can restrict the site in your Screen Time settings. to get system setupClick on the Apple menu icon in the top left corner of your screen and select system setup,
    Block Youtube Step 11 Version 5.jpg
  2. Click. You should see it next to an hourglass icon on a purple background in the menu on the left side of the window.
    Block Youtube Step 12 Version 5.jpg
    • If you’re using Family Sharing, click the family member you want to block from watching 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. choose . YouTube is not considered an “adult website,” but you’ll stop that 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 so will allow you to select YouTube as a restricted site.
    Block Youtube Step 17 Version 4.jpg
  8. Enter “youtube.com” and click. Doing so will prevent YouTube from opening in any web browser on your Mac.[1]
    Block YouTube Step 18 Version 2.jpg

[Edit]on iPhone and iPad

  1. Open your iPhone or iPad’s Settings. There are a few different ways to block YouTube on your iPhone, but the most straightforward way is to use Screen Time which blocks the YouTube app and YouTube in your iPhone’s web browser. Tap the Settings app icon, which is a gray box with gears inside.
    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 when 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 the child (optional). If you want to prevent a child from opening or downloading the YouTube app (or any other app that requires the user to be of a certain age) on this iPhone or iPad, you can easily block the app:
    Block Youtube Step 24 Version 2.jpg
    • Tap apps in the list.
    • choose 12+ (or younger) as age. Since YouTube has a recommended age of 17+, it may not be possible for your child to open the app if they are underage. The app won’t even show up on their screen.
    • To undo this restriction in the future, return to this menu and select allow all apps,[2]
    • pat Back button when you are finished. You’ve blocked the YouTube app, but what about YouTube in a web browser? Let’s fix it.
  7. Tap . It’s a little further down the page, under the “Web Content” heading.
    Block Youtube Step 25 Version 2.jpg
  8. Tap . YouTube is not considered an adult website, but turning on this feature allows you to add URLs to Block YouTube.
    Block YouTube Step 26 Version 2.jpg
  9. Tap under “Never allow”. Make sure you’re tapping the option under “Never allow” and not “Always allow”.
    Block Youtube Step 27 Version 2.jpg
  10. Add all YouTube URLs to your block list. This way:
    Block YouTube Step 28 Version 2.jpg
    • type and press Complete, Now you will see in your “Never allowed” list.
    • Tap add website Again under “Never allow”.
    • type and tap Complete,
    • Tap add website Retype and then tap Complete,

[Edit]on Android

  1. Install Blocksite and Norton AppLock. To block both the YouTube website and the YouTube app on your Android, you’ll need to download two apps: BlockSite, which blocks YouTube, and an app called Norton App Lock, which lets anyone undo the block. To prevent this, you can password protect BlockSite.
    Block YouTube Step 35.jpg
    • Both Norton AppLock and BlockSite are available for free from the Play Store.
    • Also, if you have removed the YouTube app, you will need to reinstall it for now so that 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 symbol on it.
    Block YouTube Step 36.jpg
  3. Enable BlockSite in your Android’s accessibility settings if 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 on Blocksite. It’s in the lower-right corner of the screen.
    Block Youtube Step 38 Version 2.jpg
  5. Enter YouTube address. In the text box at the top of the page, type to indicate that you want to block your Android’s built-in browsers from accessing YouTube.
    Block YouTube Step 39 Version 2.jpg
    • Unlike many content blockers, you don’t even need to block the mobile version of YouTube’s website (“m.youtube.com”).
  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 apps.
    Block YouTube Step 40 Version 2.jpg
    • If you have any third-party browsing apps installed (eg, Firefox), you’ll need to lock them with Norton AppLock to prevent your child from accessing YouTube as BlockSite doesn’t cover these apps.
  7. Tap again. It’s in the lower-right corner of the screen.
    Block YouTube Step 41 Version 2.jpg
  8. Tap on 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 a black icon inside.
    Block YouTube Step 44 Version 2.jpg
  11. Follow the on-screen instructions to grant Norton App Lock the correct permissions. Like BlockSite, you’ll need to grant Norton Lock access. Tap establishThen follow the on-screen instructions to enable access for the app.
    Block YouTube Step 46 Version 2.jpg
  12. Create and tap an unlock code. When the Norton Lock app reopens, create a pattern, then repeat the pattern when asked. This is the code you’ll use to unlock locked apps later.
    Block Youtube Step 47 Version 2.jpg
    • If you want to use a passcode instead of a pattern, tap switch on passcode And enter your preferred passcode twice instead.
  13. Lock apps that 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 that isn’t covered by BlockSite (for example, any non-Chrome or stock browser like 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, it will be impossible to access YouTube without the code.



  • You can also block YouTube with the BlockSite extension for Google Chrome and Firefox if needed. It will not block YouTube in browsers like Safari, Edge, or Internet Explorer.


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

[Edit]Related wikiHows

  • Block Websites on an iPad
  • Block hate speech on YouTube
  • Block and Unblock Internet Sites with Firefox


  1. https://support.apple.com/guide/mac-help/change-content-restrictions-settings-screen-mchlbcf0dfe2/mac
  2. https://support.apple.com/en-us/HT201304



Please enter your comment!
Please enter your name here