-
-
Save djaiss/85a0ada83e6bca68e41e to your computer and use it in GitHub Desktop.
# 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 | |
0.0.0.0 meta.com | |
0.0.0.0 www.meta.com | |
# Block Twitter | |
0.0.0.0 www.twitter.com | |
0.0.0.0 www.twittter.com | |
0.0.0.0 www.twttr.com | |
0.0.0.0 www.twitter.fr | |
0.0.0.0 www.twitter.jp | |
0.0.0.0 www.twitter.rs | |
0.0.0.0 www.twitter.uz | |
0.0.0.0 twitter.biz | |
0.0.0.0 twitter.dk | |
0.0.0.0 twitter.events | |
0.0.0.0 twitter.ie | |
0.0.0.0 twitter.je | |
0.0.0.0 twitter.mobi | |
0.0.0.0 twitter.nu | |
0.0.0.0 twitter.pro | |
0.0.0.0 twitter.su | |
0.0.0.0 twitter.vn | |
0.0.0.0 twitter.com | |
0.0.0.0 *.twitter.com | |
0.0.0.0 twitter.gd | |
0.0.0.0 twitter.im | |
0.0.0.0 twitter.hk | |
0.0.0.0 twitter.jp | |
0.0.0.0 twitter.ch | |
0.0.0.0 twitter.pt | |
0.0.0.0 twitter.rs | |
0.0.0.0 www.twitter.com.br | |
0.0.0.0 twitter.ae | |
0.0.0.0 twitter.eus | |
0.0.0.0 twitter.hk | |
0.0.0.0 ns1.p34.dynect.net | |
0.0.0.0 ns2.p34.dynect.net | |
0.0.0.0 ns3.p34.dynect.net | |
0.0.0.0 ns4.p34.dynect.net | |
0.0.0.0 d01-01.ns.twtrdns.net | |
0.0.0.0 d01-02.ns.twtrdns.net | |
0.0.0.0 a.r06.twtrdns.net | |
0.0.0.0 b.r06.twtrdns.net | |
0.0.0.0 c.r06.twtrdns.net | |
0.0.0.0 d.r06.twtrdns.net | |
0.0.0.0 api-34-0-0.twitter.com | |
0.0.0.0 api-47-0-0.twitter.com | |
0.0.0.0 cheddar.twitter.com | |
0.0.0.0 goldenglobes.twitter.com | |
0.0.0.0 mx003.twitter.com | |
0.0.0.0 pop-api.twitter.com | |
0.0.0.0 spring-chicken-an.twitter.com | |
0.0.0.0 spruce-goose-ae.twitter.com | |
0.0.0.0 takeflight.twitter.com | |
0.0.0.0 www2.twitter.com | |
0.0.0.0 m.twitter.com | |
0.0.0.0 mobile.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 |
Still can't block
I finally blocked Twitter with a Chrome app, but for some odd reason the blank page I get still has that stupid bird.
I was also having trouble with Twitter. How I fixed:
- Go to Twitter
- Open developer tools, go to the application tab
- Click on "clear site data"
After that, Twitter was not able to load anymore
In addition to that, I also added 0.0.0.0 api.twitter.com
If you are using Pi-Hole for blocking just Facebook, you can plug these into the admin web console as wildcard domains:
facebook.com
facebook.net
fbcdn.com
fbcdn.net
fbsbx.com
fbsbx.net
fburl.com
fb.me
fb.com
m.me
messenger.com
Pi-hole wildcard domains match on regex like: (\.|^)facebook\.com$
twitter is changed to X. can you please update this list?
Should it be updated with following lines?