In light of news regarding privacy and Facebook, I looked into a way to keep my web browsing from connecting with FB servers – my effort to be less trackable. This is a heavy handed domain blocking approach and will break your Facebook. Read here for information about manipulating your hosts file. If you are not a Facebook user then you gain a kernel of privacy.
Edit: This can be achieved with a uBlock for Firefox and Chrome. I was not able to block Facebook domains using uBlock for Safari.
This will work on any OS with a HOSTS file
This wonderful human posted many (I didn’t check if it is all) domains associated with Facebook. Thank you poster!
2. Save the contents of file in a text file.
3. Change all of the 0.0.0.0 to 127.0.0.1. Use Sed …
Open the file in terminal and run
Edit: Don’t use spaces. It is workable to use spaces it just complicates things slightly.
4. Copy the contents of ‘file you create for step 3.txt’ and paste them into /private/etc/hosts