Sunday, April 12th, 2015, 12:47 pm
How to Block Facebook and Stop the Most Creepy Type of Spying
acebook is facing a massive class action lawsuit in Europe right now. Facebook is indeed very unique when it comes to mass surveillance because the intrusive spying (data collected) is being shared among private companies. Facebook is a malicious network which spies on everyone, not only people who are registered with Facebook, and then sells this data to various different companies; it does not only share it with government spies. In order to protect oneself from Facebook’s wide-reaching privacy-infringing data-sharing (e.g. sharing of one’s browsing history and ID with advertising giants and even worse vultures) one must block all Facebook domains and IP addresses. In Debian/Ubuntu systems this can be achieved in the following way:
$ host www.facebook.com $ whois -h whois.radb.net 31.13.91.2 | awk '$1=="origin:" { print $2 }' $ whois -h whois.radb.net '!gAS32934' | tr ' ' '\n' > /tmp/fb $ sort -n -k1,1 -k2,2 -k3,3 -k4,4 /tmp/fb > /tmp/fb2 $ for net in $(grep '^[[:digit:]]' /tmp/fb2); do sudo ufw --dry-run \ reject out to $net;done
Or modify for direct use of iptables on OpenWRT.
Remove --dry-run
to make it work on systems that use UFW. For plain iptables, one needs to use a different line but then need some additional tricks unique to each distro to make the settings persistent across reboots.
“I put up something a while back on HowToForge about this,” said the source of the above script/comamnds, “but it always needs new coverage. I usually do the same for Microsoft networks, too.
“People with decent router hardware but still with stock firmware should be nudged to OpenWRT.”
September 27th, 2016 at 12:10 pm
Undeniably believe that which you stated. Your favorite justification appeared to be on the net the easiest thing
to be aware of. I say to you, I definitely get irked while people think about worries that they plainly
do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects ,
people could take a signal. Will likely be
back to get more. Thanks