1
1
I have seen that I can't block facebook by adding 127.0.0.1 on Windows 8! Searching on Internet let me know that I should use IP V6 loopback for blocking facebook. Now I have added the following lines to my etc/hosts file but it still doesn't work for me.
Here, there is a similar question but for apple and not for windows 8 Why can't I block Facebook using /etc/hosts on Mountain Lion (OS X)?
# Block Facebook IPv4
127.0.0.1 facebook.com
127.0.0.1 www.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 apps.facebook.com
# Block Facebook IPv6
fe80::1%lo0 localhost
fe80::1%lo0 facebook.com
fe80::1%lo0 www.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
1You do know it's not
/etc/hosts
on a Windows-machine? (It'sC:\Windows\System32\drivers\etc\hosts
. And you can use::1
instead of thefe80::1%lo0
on Windows. – Rik – 2013-11-09T23:19:43.270Ya! I surely know that it's C:\Windows\System32\drivers\etc\hosts and the question implicitly means that it works for other sites except facebook. But I didn't know that in Windows I only should use ::1 . Using ::1 it worked well. Thank you a lot @Rik! – Johnny – 2013-11-09T23:25:55.990