Your devices already have settings built into them that can block YouTube on Google Chrome.
However, there are ways to block YouTube using external programs as well. So, the methods to block YouTube on Chrome are mentioned below. Follow any of these that you see fit.
Method 1: Block JavaScript on Site Settings
Disabling Javascript from YouTube’s site settings instantly blocks YouTube on Google Chrome.
Open YouTube on Chrome.
Click on the Settings option or the lock icon before the website URL.
Click on Site Settings.
Scroll down and select the dropdown option on Javascript to Block.
Do comment below if this works for you.
Method 2: From Host files
A simple way to ban YouTube on Chrome is to add its address to the host file and block it from there. In order to do so, you will need administrative access to your PC.
For macOS, you can use the Terminal. So, follow the steps mentioned below to block YouTube on your Chrome browser.
For Mac
Search and open Terminal
Type in cd /etc and press Enter
Type in “ls” and press Enter
Again, type clear and press Enter
Type in sudo nano hosts, and press Enter
Enter the password of your computer. Then, the Host files open.
Go to the bottom using the down arrow button.
Type in “127.0.0.1 www.youtube.com” and press Enter
Press control + o and press Enter.
Press control + x and exit the Terminal.
For PC
Click on the windows icon. Search for Notepad.
Right-click on Notepad and choose Run as Administrator.
Tap yes on the confirmation window
Press Ctrl + O.
Go to the file location, This PC > Local Disk (C:) > Windows > System32 > drivers > etc.
On the bottom right corner, change the format from Text document (*.txt) to All files.
Double-click the hosts file. The file opens on the Notepad.
At the bottom, type in “# 127.0.0.1 www.youtube.com”
Save the file by pressing Ctrl + S.
Close the Notepad.
Method 3: With Extension
It is possible to add Chrome extensions to block YouTube on Google Chrome. You can install a site-blocking extension from the Chrome web store for this. This feature is available in Google Chrome on PCs and Macs.
You can add a blocking extension to your Google Chrome browser by following the instructions mentioned below.
Open Google Chrome
Click the extensions page link (chrome.google.com/webstore/)
In the search bar, search for Site Blocker. Press Enter.
Click on a website blocker you prefer and click install.
Click on the extension’s icon at the top right corner
Locate the extension and right-click on it.
Click on the blocker’s settings (or options) and navigate to the block list.
Enter www.youtube.com,
Method 4: From Screen Time
For iOS and Mac users, Apple has a website restriction function that blocks websites on their browsers. You can add YouTube to the list of adult websites to block from your device. So, refer to the steps mentioned below depending on which device you use.
For iOS
Navigate to Settings.
Go to Screen Time > Content and Privacy Restrictions> Content Restrictions
Locate and click on Web Content
Click on Limit Adult Websites.
Click on Add Website from the Never Allow section at the bottom.
Add www.youtube.com.
For Mac
Click on Apple Logo
Click System Preferences > Screen Time
Go to Content and Privacy
Go to Web Content section and mark Limit Adult Websites.
Click on Customize
On the Restrict section, click the + icon.
Add www.youtube.com and click OK.
Close the window and
In addition to blocking YouTube on Google Chrome, this process also blocks YouTube on other browsers on your device. It does not, however, prevent you from using the YouTube app.
Method 5: Set Passcode to Prevent Unblocking
After restricting YouTube with the method above, when you try to open YouTube again, a page with an Allow Website message comes up. It means users can unblock the website then and there. However, you should set a Screen Time passcode to prevent users from reallowing YouTube.
Here are the steps you need to follow:
On iOS
Navigate to Settings.
Tap on Screen Time
Tap on Use Screen Time Passcode below Content and Privacy restriction.
Enter and confirm a four-digit passcode.
Log in to your Apple ID with your credentials.
For Mac
Click on the Search icon (magnifying glass) from the toolbar at the top of the screen.
Search for Screen Time and open it.
Click the Options button in the button left corner.
Tick the Use Screen Time Passcode checkbox.
Choose Allow this user to administer this computer and click on Next.
Enter and confirm a four-digit passcode.
Log in to your Apple ID with your credentials.
In addition to blocking YouTube on Google Chrome, this process also blocks YouTube on other browsers on your device. It does not, however, prevent you from using the YouTube app.
Method 6: Using Router settings
It is possible to block YouTube via the router settings page. To do so, you need to find your router’s default gateway IP address.
Please follow the steps mentioned below to find the IP address and block YouTube.
Click the window icon and search and open Command Prompt.
Type in ipconfig and press enter.
Search for the Default Gateway IP address. (Usually 192.168.10.1)
Copy the IP address on your browser’s search bar and enter.
Log in with your router’s credentials. If you don’t have them, check at the back of your router for Username and Password.
Navigate to the Website Filter or Website Block section.
Input www.youtube.com and save the page.
YouTube will be blocked for all devices connected to the router using the method mentioned above. This includes Google Chrome, other browsers, and the YouTube app.
Related Posts
Liam Johnson
Liam is a tech enthusiast with a knack for helping others use the internet and computer software. He focuses on "HOW TOs" and "FIXES" at SpllittzTech to make your experience with technology better each day.