Blocking Facebook

Hi all
New to OpenWrt as well as Linux, but I am loving Linux (MXLinux is my main OS)
I would like to block facebook completely.
There is http facebook and https facebook.
I understand that there is a big difference.

That being said,
Do I go into Network --> Firewall --> Custom Rules ??
If so, what am I typing in there?
I really really really want to block any and all access to facebook on my network, even if it is through an android or an iOS app.

1 Like

I installed LuCI OpenWrt 18.06 branch

Well, there's probably hundreds of IP addresses associated with Facebook content and services. Many are shared with other content providers, called CDNs (Content Distribution Networks) and you can't really block them without losing other services. Best you can probably do is find all the Facebook domains (many may not be and at least block local DNS for them.

The only effective way to block by name other than DNS blocking is to use a proxy.

To block Facebook via DNS, block the following domains:

To block via IP, have a look at this new project: banIP: new project needs testers & feedback
There you can block via ASN number, e.g. the primary ASN for facebook is 32934 - that's all to effectively block facebook via IP.


No there aren't. Its all crap.

1 Like

I'm entering the discussion just to say that you're totally right. Blame me for being useless noisy but I dislike Facebook that much :joy:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.