Live data from Hacker News

Blocklist of all Facebook domains

github.com

11–20 of 152 posts

Re: Blocklist of all Facebook domains

#12

>On Windows 7, the default AV security scan will try to remove the # facebook.com entry Wat?

I'm guessing some sort of crude malware tried to MitM Facebook logins so they started cleaning host files?

Interesting thought. I wonder if it does that to email domains as well.

Re: Blocklist of all Facebook domains

#13
post #2

I just want to say "Privacy matters, thanks you" (even more when FB decided to leverage their like/share button for a global ad netwotk) :-) non tech saavy guys may love a simple .sh / .bat to automatically add those entries to the /etc/hosts on windows & unix

    curl https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/facebook/all | sudo tee -a /etc/hosts

Re: Blocklist of all Facebook domains

#14
post #9

Would wildcard support in hosts files be too heavy for the performance needed? Most of these are subdomains that *.facebook.com would have blocked.

My first impression when I saw it was something along the lines of "this would be so much cleaner if one were writing this as a dnsmasq config"

Re: Blocklist of all Facebook domains

#15
Not the way I'd do it, since you can easily miss on some new domain that belongs to facebook (or perhaps some server that does not look like it belongs to facebook in the first place, but it is sitting in their assigned subnets).

If you really want to block all traffic from/to facebook, lookup the IP prefixes associated with their AS number(AS32934), and setup your firewall to block those. If you are using PF, tables are your friend. With netfilter, consider using ipset.

Re: Blocklist of all Facebook domains

#19
This does just the same: .facebook.com .facebook.com .fbcdn.com .fbcdn.net .facebook.com.edgekey.net .facebook.com.edgesuite.net .instagram.com .instagramstatic-a.akamaihd.net .instagramstatic-a.akamaihd.net.edgesuite.net .cdninstagram.com .tfbnw.net .whatsapp.com .fbsbx.com facebook-web-clients.appspot.com .fb.me fbcdn-profile-a.akamaihd.net h-ct-m-fbx.fbsbx.com.online-metrix.net ac-h-ct-m-fbx.fbsbx.com.online-metrix.net
Post reply on HN