If you watch one video on YouTube you can quickly send you a rabbit hole of ‘related’ videos. Just like social media sites, YouTube can be time consuming, often more so than social media sites if you end up watching videos much longer.
Block YouTube on Google Chrome
YouTube is hard to avoid; many websites confirm YouTube videos and recommended videos appear at the end. If you find yourself frequently watching too many YouTube videos, it may be best to block it altogether. In Google Chrome, you can do just that by installing an extension.
Block YouTube on Chrome – extension
To block YouTube on Chrome, you need an extension that blocks content. BlockSite: Block & Stay Focused Websites is a great choice.
- Download and Install BlockSite: Block & Stay Targeted Websites from Chrome Web Store.
- Once installed, you must agree to the terms and conditions of the extension.
- Visit YouTube.
- Click on the extension icon next to the URL bar.
- In the pop-up that opens, click Block from this site.
- YouTube will be blocked.
BlockSite: Block & Stay Focused Websites is free to use for up to six websites. You can block YouTube, Facebook, Twitter, and Reddit, and two other websites of your choice on the free plan. If you need to block additional websites, you can either update or you can block YouTube (and other websites) from the host file.
YouTube Block – Hosts file
Host file is present on both Windows and macOS systems.
The host file for Windows 7, 8 / 8.1 / 10/11 can be found at:
C:WindowsSystem32Driversetchosts
The host file on macOS can be found at:
/private/etc/hosts
Use Command + G in Finder and wrap along the way to open the Hosts file
The host file can be edited in any default text editor. On Windows, you can use Notepad. On macOS, you can use TextEdit.
- Open the host file in a text editor.
- Insert a new line at the very end (do not sign # before the line)
- Enter 127.0.0.1 on the line.
- Press the Tab key.
- Enter youtube.com
- Go to the next line.
- Enter 127.0.0.1 on the line.
- Press the Tab key.
- Enter www.youtube.com.
- Save the file.
- Clear browser cache.
- YouTube will be blocked.
You can repeat this for as many websites as you want to block.
Conclusion
If you decide to block YouTube (and other websites) from using the host file, be sure to upload the original file first. If you want to block a website, all you have to do is remove the lines you added in the guest file. Make sure to save the change, and make sure you clear your browser cache after editing the file.
The post How to Block YouTube on Google Chrome appeared first on TechtricksNg.