Introduction About Site Map

XML
RSS 2 Feed RSS 2 Feed
Navigation

Main Page | Blog Index

Sunday, April 12th, 2015, 12:47 pm

How to Block Facebook and Stop the Most Creepy Type of Spying

Facebook 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.”

One Response to “How to Block Facebook and Stop the Most Creepy Type of Spying”

  1. chuy?n ái ân Says:

    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

Technical Notes About Comments

Comments may include corrections, additions, citations, expressions of consent or even disagreements. They should preferably remain on topic.

Moderation: All genuine comments will be added. If your comment does not appear immediately (a rarity), it awaits moderation as it contained a sensitive word or a URI.

Trackbacks: The URI to TrackBack this entry is:

https://schestowitz.com/Weblog/archives/2015/04/12/blocking-facebook/trackback/

Syndication: RSS feed for comments on this post RSS 2

    See also: What are feeds?, Local Feeds

Comments format: Line and paragraph breaks are automatic, E-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Back to top

Retrieval statistics: 21 queries taking a total of 0.119 seconds • Please report low bandwidth using the feedback form
Original styles created by Ian Main (all acknowledgements) • PHP scripts and styles later modified by Roy Schestowitz • Help yourself to a GPL'd copy
|— Proudly powered by W o r d P r e s s — based on a heavily-hacked version 1.2.1 (Mingus) installation —|