Facebook has repeatedly shown to be untrustworthy in their handling of privacy, their IPO was an over-inflated/over-hyped scam, and their business model is shady at best. I block all Facebook domains at the DNS level so they can’t get their grubby hands on any of my data, browsing habits, etc.
To block all Facebook domains, “Like” buttons, cookies, etc on the web, add the following to /etc/hosts:
# Block Facebook 127.0.0.1 www.facebook.com 127.0.0.1 facebook.com 127.0.0.1 static.ak.fbcdn.net 127.0.0.1 www.static.ak.fbcdn.net 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.connect.facebook.com 127.0.0.1 www.static.ak.connect.facebook.com
Google’s probably the next-worst offender of “get/sell ALL the user data!”, but at least they’re providing services I use (search, mail, Android, docs, etc). Nothing in life is free, eh?
Update: Commenter Stephen Jakubiec points out that redirecting to
0.0.0.0 is a more robust way of achieving the desired effect, as it doesn’t have the unwanted side effect of redirecting Facebook requests to your local webserver (if you have one running). In case you’re daft, here’s what you need to change:
# Block Facebook 0.0.0.0 www.facebook.com 0.0.0.0 facebook.com 0.0.0.0 static.ak.fbcdn.net 0.0.0.0 www.static.ak.fbcdn.net 0.0.0.0 login.facebook.com 0.0.0.0 www.login.facebook.com 0.0.0.0 fbcdn.net 0.0.0.0 www.fbcdn.net 0.0.0.0 fbcdn.com 0.0.0.0 www.fbcdn.com 0.0.0.0 static.ak.connect.facebook.com 0.0.0.0 www.static.ak.connect.facebook.com
Update: Also see this curated list which seems to be updated frequently: http://someonewhocares.org/hosts/zero/