Created
July 18, 2022 18:47
-
-
Save francisrstokes/b9b9c113d73420800e09e88f1f111a44 to your computer and use it in GitHub Desktop.
Script to route a bunch of known facebook domains to your machine, circumventing tracking
This file contains 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
#!/bin/bash | |
# Run this script as root on a linux machine to | |
# block (at least some) facebook trackers | |
echo "0.0.0.0 www.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 facebook.com" >> /etc/hosts | |
echo "0.0.0.0 login.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 www.login.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 fbcdn.net" >> /etc/hosts | |
echo "0.0.0.0 www.fbcdn.net" >> /etc/hosts | |
echo "0.0.0.0 fbcdn.com" >> /etc/hosts | |
echo "0.0.0.0 www.fbcdn.com" >> /etc/hosts | |
echo "0.0.0.0 static.ak.fbcdn.net" >> /etc/hosts | |
echo "0.0.0.0 static.ak.connect.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 connect.facebook.net" >> /etc/hosts | |
echo "0.0.0.0 www.connect.facebook.net" >> /etc/hosts | |
echo "0.0.0.0 meta.com" >> /etc/hosts | |
echo "0.0.0.0 www.meta.com" >> /etc/hosts | |
echo "0.0.0.0 apps.facebook.com" >> /etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment