# Blocking Facebook

**URL:** <https://forum.openwrt.org/t/blocking-facebook/22440>\
**Category:** Network and Wireless Configuration\
**Created:** [October 2, 2018, 1:34am UTC](https://forum.openwrt.org/t/blocking-facebook/22440 "2018-10-02T01:34:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![newguy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/newguy/32/6173_2.png) [@newguy](https://forum.openwrt.org/u/newguy)\
**Post date:** [October 2, 2018, 1:34am UTC](https://forum.openwrt.org/t/blocking-facebook/22440/1 "2018-10-02T01:34:44Z")

</div>

Hi all  
New to OpenWrt as well as Linux, but I am loving Linux (MXLinux is my main OS)  
Anywayyyy  
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.

---

<div class="post-metadata">

**Author:** ![newguy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/newguy/32/6173_2.png) [@newguy](https://forum.openwrt.org/u/newguy)\
**Post date:** [October 2, 2018, 1:36am UTC](https://forum.openwrt.org/t/blocking-facebook/22440/2 "2018-10-02T01:36:22Z")

</div>

> [@newguy](#):
>
> ## Hi all
> 
> New to OpenWrt as well as Linux, but I am loving Linux (MXLinux is my main OS)  
> Anywayyyy  
> 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.

I installed LuCI OpenWrt 18.06 branch

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/5_5575768a8748004e209b776fc1b2916d.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [October 2, 2018, 2:24am UTC](https://forum.openwrt.org/t/blocking-facebook/22440/3 "2018-10-02T02:24:56Z")

</div>

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 [facebook.com](http://facebook.com)) and at least block local DNS for them.

---

<div class="post-metadata">

**Author:** ![dlakelan](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dlakelan/32/2320_2.png) [@dlakelan](https://forum.openwrt.org/u/dlakelan)\
**Post date:** [October 2, 2018, 2:39am UTC](https://forum.openwrt.org/t/blocking-facebook/22440/4 "2018-10-02T02:39:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dibdot](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dibdot/32/3100_2.png) [@dibdot](https://forum.openwrt.org/u/dibdot)\
**Post date:** [October 2, 2018, 7:33am UTC](https://forum.openwrt.org/t/blocking-facebook/22440/5 "2018-10-02T07:33:41Z")

</div>

To block Facebook via DNS, block the following domains:

```
facebook.com
facebook.net
facebook.co.in
facebook.co.uk
fbcdn.com
fbcdn.net
fbsbx.com
fb.me
fb.com

```

To block via IP, have a look at this new project: [banIP: new project needs testers & feedback](https://forum.openwrt.org/t/banip-new-project-needs-testers-feedback/16985)  
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.

---

<div class="post-metadata">

**Author:** ![backinabit](https://forum.openwrt.org/letter_avatar/backinabit/32/5_5575768a8748004e209b776fc1b2916d.png) [@backinabit](https://forum.openwrt.org/u/backinabit)\
**Post date:** [November 18, 2019, 5:35pm UTC](https://forum.openwrt.org/t/blocking-facebook/22440/8 "2019-11-18T17:35:18Z")

</div>

No there aren't. Its all crap.

---

<div class="post-metadata">

**Author:** ![NoTengoBattery](https://forum.openwrt.org/user_avatar/forum.openwrt.org/notengobattery/32/31411_2.png) [@NoTengoBattery](https://forum.openwrt.org/u/NoTengoBattery)\
**Post date:** [November 18, 2019, 6:11pm UTC](https://forum.openwrt.org/t/blocking-facebook/22440/9 "2019-11-18T18:11:47Z")

</div>

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 😂

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [November 28, 2019, 6:11pm UTC](https://forum.openwrt.org/t/blocking-facebook/22440/10 "2019-11-28T18:11:48Z")

</div>

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