How do I block YouTube with hosts file?

How do I block YouTube with hosts file?

If you would like to block YouTUbe across all browsers in a computer, follow the steps outlined below:

  1. First, open your computer’s ‘hosts’ file.
  2. Enter a line at the bottom with YouTube’s address >> Type 127.0.
  3. Next, type in 127.0.
  4. Next, save your ‘hosts’ file.
  5. That’s it!

How do I block YouTube on Windows 10 host file?

How to Block YouTube on Windows 10 (or Any Website)

  1. What is a hosts file?
  2. Step 1: First & foremost, you’d have to navigate to your hosts file.
  3. Step 2: Assign the loop-back IP address of 127.0.0.1 to the sites you want to block.
  4. Step 3: Save your file.
  5. Step 1: Search for notepad in your start menu.

How do I block websites with hosts file?

Method 3: Open the Hosts File With Notepad

  1. Open Notepad as an Administrator.
  2. In Notepad click on File > Open or press CTRL + O.
  3. In the Address Bar of the Open Dialogue Box enter this text string: %SystemRoot%\System32\drivers\etc\hosts.
  4. At first you will not see anything in this folder.

How can I block YouTube on my computer?

To block YouTube using site settings, follow the steps below:

  1. Open Google Chrome.
  2. Go to YouTube.
  3. Click on the lock icon on the left side of the URL.
  4. Choose “Site settings” from the drop-down menu.
  5. Scroll down to “Your device use.”
  6. Click on the “Ask (default)” box.
  7. Select “Block.”

How can I restrict what my child watches on Youtube?

Here’s how to do it:

  1. Access YouTube.com and sign in to your YouTube/Google account.
  2. Click the “Settings” button in the left sidebar.
  3. Click the drop-down menu at the bottom of the page that reads: “Restricted Mode: Off.”
  4. Select “On” to lock Restricted Mode on this browser.
  5. Click “Save.”

What URL to use to block Youtube?

Domains required to block Youtube and Youtube apps

  1. googlevideo.com.
  2. youtu.be.
  3. youtube-nocookie.com.
  4. youtube.com.
  5. youtube.googleapis.com.
  6. youtubei.googleapis.com <- note the “i” on the end of “youtube”, that is not a typo.
  7. ytimg.com.
  8. ytimg.l.google.com <- that’s an “L” before the “. google.com” part.

Can I block YouTube on Windows 10?

Windows 10 has built-in parental controls that you can use to block undesirable websites through the Microsoft Edge web browser. Note that you can set this up using any internet browser, but once you do, the sites will only be blocked in Microsoft Edge — any other browser will be unaffected.

How do you block websites using hosts file in Windows?

How to block websites on your PC

  1. Open Windows Explorer and navigate to C:WindowsSystem32driversetc.
  2. Double-click hosts, and select Notepad when Windows prompts you to choose a program.
  3. Place the cursor at the end of the last line, which will say something such as “127.0.
  4. Type 127.0.

How do you block all websites except one using hosts file?

Can you block all websites except one in router?

  1. Access your router’s settings by logging in.
  2. Find the parental controls, web filtering or similar settings.
  3. There should be two filtering types: the blacklist and the whitelist.
  4. Add specific websites or URLs to the whitelist one by one.
  5. Save your settings.

Can a host file be used to block a website?

This file allows you to manually associate IP addresses with domain names (i.e., google.com,) so the Domain Name Server (DNS) can quickly resolve an address. To use the HOSTS file to block a website, assign the IP address of 127.0.0.1 to the domain name of known ad servers and malicious websites.

Is there a way to block someone from accessing YouTube?

Block YouTube (and video sharing if necessary) via the Web Content Filtering menu. Delete the YouTube app if you have it installed. This will prevent someone from accessing YouTube through its app: Lightly tap and hold the YouTube app icon. Release the app icon when it starts shaking.

Is there a way to block HTTPS sites?

HTTPS sites will not get blocked unless you include www in its address. D) If you would like to add a comment about this blocked website, then press the Tab key to add space, press the pound key # to indicate this is a comment, and type the comment you want (ex: “To block Facebook”).

Where do I enter my address on YouTube?

You can do this on a Windows computer or on a Mac computer. Once you’ve opened the “hosts” file and are ready to enter an address, proceed. Enter a line at the bottom with YouTube’s address. Type in 127.0.0.1 and press the Tab ↹ key, then type in youtube.com and press ↵ Enter.

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top