Comments on Blocking Facebook Web Trackers At The Firewall For Extra Privacy
Blocking Facebook Web Trackers At The Firewall For Extra Privacy If you've spent any time examining the network traffic to and from your web browser, you will notice the prolific number of trackers embedded in the pages. There are some add-ons to the web browsers that aid in privacy, but it is simple enough to block the rogue sites at the firewall.
12 Comment(s)
Comments
have immidiately integrated your rules into my wlan router's firewall rules
For Linux: to block all IP addresses currently owned by Facebook use:
/usr/bin/whois -h whois.radb.net '!gAS32934' | head -n -1 | tail -n -1 | /usr/bin/xargs --max-args=1 | /usr/bin/xargs -I {} --max-args=1 /sbin/iptables -t mangle -I POSTROUTING -d {} -j DROP
Thanks, that's much more thorough.
It would be important to use REJECT instead of DROP so that you get a prompt response rather than a sluggish timeout.
Thank you for this great HowTo!
The above command leads to the following (additional) IP-Ranges:
31.13.24.0/21
31.13.64.0/18
66.220.144.0/20
69.171.224.0/19
69.63.176.0/20
74.119.76.0/22
103.4.96.0/22
173.252.64.0/18
204.15.20.0/22
There is a typo in two places
66.220.144.0/2
should be 66.220.144.0/20
Two-bit netmask seems to be excessive :-)
Thanks. I've updated the table.
I guess that blocking the facebook trackers also blocks facebook?
The ghostery addon in firefox gives me insight in which url adress is actually a tracker. Then a whois reveals their IP. Thanks for this article, my iptables are up to date now.
This is what exactly I was looking for.
A very big thank you from Italy.
Thank you very much...It have very useful for block facebook in my school computer network
How do I block those ip addresses on my router without coding any crazy things?