Created
October 13, 2021 18:44
-
-
Save xenotropic/db626832875354d8747155feefdf448c to your computer and use it in GitHub Desktop.
/etc/hosts block facebook twitter reddit
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
# May need to add IPv6 someday but for now these work for me | |
# I keep this as a file called "/etc/hosts.normal" (since "normally" social media should be off on my work computer) | |
# and then a more typical hosts file (whatever you had to start with) as "/etc/hosts.social-media-allow" | |
# so can easily switch them by copying | |
# Block Facebook IPv4 | |
127.0.0.1 www.facebook.com | |
127.0.0.1 facebook.com | |
127.0.0.1 login.facebook.com | |
127.0.0.1 www.login.facebook.com | |
127.0.0.1 fbcdn.net | |
127.0.0.1 www.fbcdn.net | |
127.0.0.1 fbcdn.com | |
127.0.0.1 www.fbcdn.com | |
127.0.0.1 static.ak.fbcdn.net | |
127.0.0.1 static.ak.connect.facebook.com | |
127.0.0.1 connect.facebook.net | |
127.0.0.1 www.connect.facebook.net | |
127.0.0.1 reddit.com | |
127.0.0.1 www.reddit.com | |
# Block Twitter | |
127.0.0.1 www.twitter.com | |
127.0.0.1 twitter.com | |
# Block Facebook IPv6 | |
fe80::1%lo0 facebook.com | |
fe80::1%lo0 login.facebook.com | |
fe80::1%lo0 www.login.facebook.com | |
fe80::1%lo0 fbcdn.net | |
fe80::1%lo0 www.fbcdn.net | |
fe80::1%lo0 fbcdn.com | |
fe80::1%lo0 www.fbcdn.com | |
fe80::1%lo0 static.ak.fbcdn.net | |
fe80::1%lo0 static.ak.connect.facebook.com | |
fe80::1%lo0 connect.facebook.net | |
fe80::1%lo0 www.connect.facebook.net | |
fe80::1%lo0 apps.facebook.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment