Last active
June 21, 2022 19:58
-
-
Save Luis-Licea/2322ab37e437698fdf3cfe0746dee1d7 to your computer and use it in GitHub Desktop.
Block YouTube on Linux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to the end of /etc/hosts | |
# Log out and log in for changes to take effect. | |
# To enable YouTube back, simply comment out or remove the section. | |
# Block YouTube. | |
127.0.0.1 www.youtube.com | |
127.0.0.1 m.youtube.com | |
127.0.0.1 youtube.com | |
127.0.0.1 youtu.be | |
127.0.0.1 ytimg.com | |
127.0.0.1 l.google.com | |
127.0.0.1 googlevideo.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment