How to Block YouTube on Your PC or Mac

YouTube is residence to limitless instructional and entertaining content material. Nonetheless, you would possibly wish to block YouTube in your private or residence laptop if the web site’s changing into too distracting.

Placing YouTube in Restricted Mode blocks grownup content material and makes the platform safer to your children or teenage youngsters. It’s also possible to block particular channels with inappropriate content material. However if you wish to block entry to the YouTube web site in your laptop, we’ll present you the way it’s executed. This tutorial covers steps for Mac and Home windows computer systems.

Block YouTube on Home windows PC

You’ll be able to block web sites by modifying the “Hosts file” that Home windows makes use of to configure your laptop’s Transmission Management Protocol/Web Protocol (TCP/IP). TCP/IP describes a set of directions that dictate how your laptop exchanges information over the web.

Observe the steps beneath to dam YouTube by modifying the Home windows hosts file in Home windows 10 or 11.

  1. Open the Home windows File Explorer (Home windows key + E), paste C:WindowsSystem32driversetc, and press Enter.
  1. Double-click the hosts file.
  1. Select Notepad and choose OK.
  1. Scroll to the underside of the web page and press Enter to go to a brand new line. Sort 127.0.0.1, press the Spacebar, sort www.youtube.com, and press Enter to maneuver to the next line.

This command blocks YouTube on all browsers (Safari, Firefox, Microsoft Edge, and many others.) besides Google Chrome.

  1. Sort 127.0.0.1, press the Spacebar, sort youtube.com, and press the Spacebar once more. This command blocks your PC’s Google Chrome browser from accessing YouTube.
  1. Press Ctrl + Shift + S, or choose File within the top-right nook and choose Save as.
  1. Choose All information within the “Save as sort” drop-down menu. Afterward, choose the hosts file within the vacation spot folder and choose Save.
  1. Choose Sure on the pop-up window.

Shut Notepad and take a look at visiting YouTube in your internet browser. For those who adopted these steps appropriately, YouTube ought to show a “Hook up with the web. You’re offline.” error message. For those who can nonetheless open YouTube, restart your laptop and take a look at once more.

Unblock YouTube in Home windows

  1. Return to the hosts file vacation spot (Native disk (C:) > Home windows > System32 > drivers > and many others) and open the hosts file utilizing Notepad.
  1. Delete the IP deal with and YouTube web site URL(s) within the doc’s final line.
  1. Press Ctrl + S to save lots of the hosts file. Alternatively, choose File on the menu bar, and choose Save.

Shut the hosts file in Notepad, open any internet browser, and verify if now you can entry YouTube. Restart your laptop in case your browser doesn’t load YouTube.

Learn how to Block YouTube on Your Mac

In macOS, you may block YouTube in Display Time or by modifying your Mac’s TCP/IP hosts file.

Block YouTube Utilizing Display Time

Display Time on Mac computer systems has content material restriction settings for blocking inappropriate internet content material. Observe the steps beneath to dam entry to YouTube on all internet browsers put in in your Mac.

  1. Open System Preferences and choose Display Time.
  1. Choose Choices within the bottom-left nook and verify the Use Display Time Passcode possibility.

It’s doable to bypass passcode restrictions from an administrator account. Therefore, Apple recommends setting a Display Time passcode from a regular account.

For those who’re utilizing an administrator account, you’ll get a immediate to create a brand new administrator account in your Mac. Select Don’t enable this person to manage this laptop, create a brand new person account to be the administrator, and comply with the immediate to create a brand new admin account.

In any other case, bounce to step #3 if establishing Display Time from a regular account.

  1. Enter a four-digit Display Time passcode.
  1. Re-enter the four-digit Display Time passcode to proceed.

The subsequent step is to arrange the Display Time passcode restoration. For those who ever neglect your Display Time passcode, you may reset it utilizing your Apple ID.

  1. Enter your Apple ID e mail and password and choose Subsequent.
  1. Choose Content material & Privateness on the Display Time settings menu and choose Restrict Grownup Web sites.
  1. Enter your Display Time passcode.
  1. Choose Customise.
  1. Choose the plus icon (+) within the backside nook of the block checklist.
  1. Enter https://youtube.com within the URL dialog field and choose OK.
  1. Choose OK to save lots of the restriction.

Your internet browsers will show a Display Time pop-up when anybody visits YouTube in your Mac.

To unblock YouTube, choose the YouTube URL within the “Restricted” part and the minus (—) icon within the backside nook. Choose OK to save lots of the settings and unblock entry to YouTube on all internet browsers.

Block YouTube on Mac By Tweaking macOS Hosts File

  1. Go to Finder > Functions > Utilities and double-click Terminal.
  1. Sort or paste sudo nano /and many others/hosts within the Terminal console and press Return.
  1. Enter your Mac’s password and press Return.
  1. Sort or paste 127.0.0.1 www.youtube.com within the final line. Afterward, press Management + O and press Return to save lots of the hosts file.
  1. Shut the Terminal window, clear your browser’s cache, and verify if YouTube is blocked.

You could clear your browser’s cache after modifying the hosts file in Terminal. In any other case, you and different customers will nonetheless be capable to entry YouTube.

To unblock YouTube, reopen the hosts file in Terminal (see steps #1 — #3) and delete 127.0.0.1 www.youtube.com. Press Management + O and press Return to save lots of the hosts file.

Use Third-Get together Software

The strategies above are easy and work on all macOS and Home windows variations. Alternatively, you may block YouTube utilizing free parental management software program or your router’s admin panel.

Leave a Reply

Your email address will not be published. Required fields are marked *