TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Blocklist of all Facebook domains

499 点作者 temp将近 9 年前

34 条评论

marios将近 9 年前
Not the way I&#x27;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).<p>If you really want to block all traffic from&#x2F;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.
评论 #11791576 未加载
评论 #11791303 未加载
评论 #11791438 未加载
评论 #11793159 未加载
评论 #11795351 未加载
评论 #11795179 未加载
评论 #11791401 未加载
评论 #11793543 未加载
评论 #11793624 未加载
评论 #11792294 未加载
评论 #11793578 未加载
kazinator将近 9 年前
It&#x27;s inefficient to specify a large number of hosts in the facebook.com domain instead of blocking the whole domain.<p>For this, you can run dnsmasq and use the &quot;--address&quot; option or &quot;address&quot; command in dnsmasq.conf:<p><pre><code> $ man dnsmasq [...] -A, --address=&#x2F;&lt;domain&gt;&#x2F;[domain&#x2F;]&lt;ipaddr&gt; Specify an IP address to return for any host in the given domains. Queries in the domains are never forwarded and always replied to with the specified IP address which may be IPv4 or IPv6. To give both IPv4 and IPv6 addresses for a domain, use repeated -A flags. Note that &#x2F;etc&#x2F;hosts and DHCP leases over‐ ride this for individual names. A common use of this is to redi‐ rect the entire doubleclick.net domain to some friendly local web server to avoid banner ads. The domain specification works in the same was as for --server, with the additional facility that &#x2F;#&#x2F; matches any domain. Thus --address=&#x2F;#&#x2F;1.2.3.4 will always return 1.2.3.4 for any query not answered from &#x2F;etc&#x2F;hosts or DHCP and not sent to an upstream nameserver by a more spe‐ cific --server directive.</code></pre>
评论 #11792999 未加载
评论 #11791784 未加载
mp3geek将近 9 年前
Alternatively you can use Adblock to block it.<p><a href="https:&#x2F;&#x2F;secure.fanboy.co.nz&#x2F;fanboy-antifacebook.txt" rel="nofollow">https:&#x2F;&#x2F;secure.fanboy.co.nz&#x2F;fanboy-antifacebook.txt</a><p>Disclaimer, list Author.
评论 #11791315 未加载
avree将近 9 年前
If you&#x27;re blocking Instagram, shouldn&#x27;t you be blocking the Oculus Rift site (and any subdomains) too?
评论 #11791479 未加载
zhong将近 9 年前
No need do this, come to China prepared everything for you like this.
评论 #11792525 未加载
punnerud将近 9 年前
This does just the same: <i>.facebook.com </i>.facebook.com <i>.fbcdn.com </i>.fbcdn.net <i>.facebook.com.edgekey.net </i>.facebook.com.edgesuite.net <i>.instagram.com </i>.instagramstatic-a.akamaihd.net <i>.instagramstatic-a.akamaihd.net.edgesuite.net </i>.cdninstagram.com <i>.tfbnw.net </i>.whatsapp.com <i>.fbsbx.com facebook-web-clients.appspot.com </i>.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
评论 #11791399 未加载
chriswarbo将近 9 年前
I&#x27;ve been blocking facebook for years (nowhere near as comprehensive as this list though).<p>Many of the most unfortunate problems with these sites are social in nature rather than technical. For example, no matter how much I plead with people not to, they keep uploading information about me to these type of sites, including photographs with timestamps and GPS location metadata, which they then &quot;tag&quot; my face as being me.<p>I don&#x27;t have any idea how much of this information is even out there, since these sites require signing up in order to find out. Maybe I should look into my rights under data protection legislation...
评论 #11801999 未加载
maaaats将近 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.
评论 #11791205 未加载
评论 #11795750 未加载
cm2187将近 9 年前
I can understand the multiplication of sub domains, to be able to use multiple connections. But what&#x27;s the rationale for the multiplication of domain names? Ad blocker avoidance?
评论 #11791394 未加载
评论 #11792162 未加载
评论 #11791881 未加载
mfo将近 9 年前
I just want to say &quot;Privacy matters, thanks you&quot; (even more when FB decided to leverage their like&#x2F;share button for a global ad netwotk) :-) non tech saavy guys may love a simple .sh &#x2F; .bat to automatically add those entries to the &#x2F;etc&#x2F;hosts on windows &amp; unix
评论 #11791596 未加载
评论 #11791200 未加载
评论 #11791190 未加载
评论 #11791687 未加载
justsaysmthng将近 9 年前
I&#x27;m sorry, I&#x27;ve been away for a couple of hours... What happened ?<p>Why should I (we) block all facebook domains ?
评论 #11791310 未加载
评论 #11791319 未加载
评论 #11791281 未加载
评论 #11791271 未加载
joeblau将近 9 年前
Will there be a point where the government will step in or is all of this tracking within fair use of non-logged in Facebook users visiting a website?
评论 #11791407 未加载
评论 #11792387 未加载
TazeTSchnitzel将近 9 年前
Should you not also include `::` IPv6 entries?
iam-TJ将近 9 年前
With the help of a couple of prefix aggregation tools [1] [2], the BASH shell, and the RIPE database, it is straightforward to block any Autonomous System with, e.g:<p><pre><code> $ ASN=32934; for IP in 4 6; do \ whois -h riswhois.ripe.net \!${IP&#x2F;4&#x2F;g}as${ASN} |\ sed -n &#x27;2 p&#x27; | tr \ \\n | aggregate${IP&#x2F;4&#x2F;} |\ while read NET; do echo ip${IP&#x2F;4&#x2F;}tables -I OUTPUT -d ${NET} -j REJECT;\ done; done </code></pre> (note this command uses <i>echo</i> to show the command it could execute)<p>[1] aggregate <a href="http:&#x2F;&#x2F;packages.ubuntu.com&#x2F;source&#x2F;xenial&#x2F;aggregate" rel="nofollow">http:&#x2F;&#x2F;packages.ubuntu.com&#x2F;source&#x2F;xenial&#x2F;aggregate</a><p>[2] aggregate6 <a href="https:&#x2F;&#x2F;github.com&#x2F;job&#x2F;aggregate6" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;job&#x2F;aggregate6</a>
stardogg将近 9 年前
I&#x27;m wondering ... what&#x27;s the best approach to automatically collect all domains of a company?
评论 #11793051 未加载
评论 #11795236 未加载
评论 #11791320 未加载
elcapitan将近 9 年前
Oh wow, I didn&#x27;t know it were that many, I had like 20 in my hosts file. Thanks!
rotoole将近 9 年前
Aside from being easier to automate, getting IP&#x27;s via the ASN lookup is also better for blocking HTTPS requests when you are MITM, since the HTTPS request will only contain the IP and not the FQDN.<p>Also, many firewalls do a 1-time DNS lookup of a given FQDN to resolve a single IP address when a FQDN based rule is created. This doesn&#x27;t work well if you have an FQDN that can resolve to many different IP&#x27;s, which is typical for cloud services.
评论 #11791781 未加载
hallatore将近 9 年前
Isn&#x27;t Ghostery a better solution for something like this? If we are talking about browsers that is.
评论 #11791197 未加载
评论 #11791679 未加载
评论 #11794134 未加载
jpkeisala将近 9 年前
Slightly off topic: It would be nice to have some kind of extension for Chrome that blocks all Time-Wasting websites with one click. Has anyone seen something like that?
评论 #11791294 未加载
评论 #11791433 未加载
评论 #11791273 未加载
评论 #11791280 未加载
flavmartins将近 9 年前
Did you add the Facebook Tor Onion address?<p>facebookcorewwwi.onion<p>Might as well make it a complete block. Make sure those creative types don&#x27;t find that last alternate path to FB.
ew将近 9 年前
This list is missing the very obvious messenger.com
midgetjones将近 9 年前
It is faintly terrifying just how long the list is.
评论 #11791208 未加载
petrikapu将近 9 年前
Do you how to apply this just for my user on OS X? My partner is heavy FB user and I don&#x27;t want to block her...
评论 #11791451 未加载
评论 #11791773 未加载
mickrussom将近 9 年前
Im going to start trying this out. Awesome. Also as marios said block AS32934&#x27;s networks.
curiousgal将近 9 年前
Any idea of an easy&#x2F;quick way to toggle these edits on&#x2F;off on Ubuntu?
评论 #11791330 未加载
curiousgal将近 9 年前
&gt;On Windows 7, the default AV security scan will try to remove the # facebook.com entry<p>Wat?
评论 #11791188 未加载
hackney将近 9 年前
So awesome. Facebook: Server not found
ausjke将近 9 年前
IMHO the only way to block things efficiently is via a proxy these days, IP&#x2F;domain-based blocking are not reliable or efficient.
评论 #11793917 未加载
hellbanner将近 9 年前
Thank you! Now I can censor, too
zxcvcxz将近 9 年前
Honest question because I seriously don&#x27;t know: Is facebook really worse than google when it comes to privacy?<p>I kind of wonder who exactly are the people telling everyone to block facebook everywhere while everyone seems to collectively ignore google.<p>Google and facebook seem to both purposely ignore the known implications of their data collection programs. They likely have handed over data to the NSA, and we know they sell the data.
评论 #11792128 未加载
评论 #11793460 未加载
评论 #11792373 未加载
meeper16将近 9 年前
This is awesome. Facebook needs to go to the graveyard with friendster, myspace and AOL.
supergirl将近 9 年前
dramatic and useless.
hartator将近 9 年前
I would actually do it for Google. But, we all know we have became to dependent on them.
labithiotis将近 9 年前
Who really cares?
评论 #11792484 未加载
评论 #11791809 未加载