// META (FACEBOOK) / NGINX
Meta (Facebook) · Nginx
Nginx allow/deny config for Meta (Facebook). Drop into your server block or http context. 761 CIDRs, refreshed daily.
// nginx_meta_allow.conf
# Meta IP Ranges # Updated: 2026-06-11 03:19:39 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 00:00 UTC # To restrict access to only these IPs in nginx, # add the following line to your server block in your nginx configuration file (e.g., /etc/nginx/nginx.conf or /etc/nginx/sites-available/default): # include /path/to/nginx_meta_allow.conf; allow 31.13.24.0/21; allow 31.13.64.0/18; allow 31.13.64.0/24; allow 31.13.66.0/24; allow 31.13.69.0/24; allow 31.13.70.0/24; allow 31.13.71.0/24; allow 31.13.72.0/24; allow 31.13.73.0/24; allow 31.13.80.0/24; allow 31.13.82.0/24; allow 31.13.83.0/24; allow 31.13.84.0/24; allow 31.13.86.0/24; allow 31.13.87.0/24; … (747 more lines)
// nginx_meta_deny.conf
# Meta IP Ranges # Updated: 2026-06-11 03:19:39 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 00:00 UTC # To deny access from these IPs in nginx, # add the following line to your server block in your nginx configuration file (e.g., /etc/nginx/nginx.conf or /etc/nginx/sites-available/default): # include /path/to/nginx_meta_deny.conf; deny 31.13.24.0/21; deny 31.13.64.0/18; deny 31.13.64.0/24; deny 31.13.66.0/24; deny 31.13.69.0/24; deny 31.13.70.0/24; deny 31.13.71.0/24; deny 31.13.72.0/24; deny 31.13.73.0/24; deny 31.13.80.0/24; deny 31.13.82.0/24; deny 31.13.83.0/24; deny 31.13.84.0/24; deny 31.13.86.0/24; deny 31.13.87.0/24; … (747 more lines)