-
-
Save hmidani-abdelilah/eebe0d1b2eefccd57d4574909c94cf37 to your computer and use it in GitHub Desktop.
facebook ip list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 31.13.24.0/21 | |
| 31.13.64.0/19 | |
| 31.13.64.0/24 | |
| 31.13.69.0/24 | |
| 31.13.70.0/24 | |
| 31.13.71.0/24 | |
| 31.13.72.0/24 | |
| 31.13.73.0/24 | |
| 31.13.75.0/24 | |
| 31.13.76.0/24 | |
| 31.13.77.0/24 | |
| 31.13.78.0/24 | |
| 31.13.79.0/24 | |
| 31.13.80.0/24 | |
| 66.220.144.0/20 | |
| 66.220.144.0/21 | |
| 66.220.149.11/16 | |
| 66.220.152.0/21 | |
| 66.220.158.11/16 | |
| 66.220.159.0/24 | |
| 69.63.176.0/21 | |
| 69.63.176.0/24 | |
| 69.63.184.0/21 | |
| 69.171.224.0/19 | |
| 69.171.224.0/20 | |
| 69.171.224.37/16 | |
| 69.171.229.11/16 | |
| 69.171.239.0/24 | |
| 69.171.240.0/20 | |
| 69.171.242.11/16 | |
| 69.171.255.0/24 | |
| 74.119.76.0/22 | |
| 173.252.64.0/19 | |
| 173.252.70.0/24 | |
| 173.252.96.0/19 | |
| 204.15.20.0/22 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Linux if you have iptables and ipset installed you can put the contents of the above gist into a file (say /var/tmp/facebook-nets) and then you can do the following;
NOTE: you may get warnings / errors that some of the nets are already included, you can ignore these types of errors
# iptables -A OUTPUT -m set --match-set block-facebook-ips dst -j REJECTNOTE: this blocks all outbound traffic from your machine to facebook (i.e. your browser trying to load facebook pages or widgets / sharing tools)
# iptables -L OUTPUT -nvChain OUTPUT (policy ACCEPT 1212 packets, 145K bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 match-set block-facebook-ips dst reject-with icmp-port-unreachable