// FASTLY / NGINX
Fastly · Nginx
Nginx allow/deny config for Fastly. Drop into your server block or http context. 21 CIDRs, refreshed daily.
// nginx_fastly_allow.conf
# Fastly IP Ranges # Updated: 2026-02-11 15:35:31 # 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_fastly_allow.conf; allow 23.235.32.0/20; allow 43.249.72.0/22; allow 103.244.50.0/24; allow 103.245.222.0/23; allow 103.245.224.0/24; allow 104.156.80.0/20; allow 140.248.64.0/18; allow 140.248.128.0/17; allow 146.75.0.0/17; allow 151.101.0.0/16; allow 157.52.64.0/18; allow 167.82.0.0/17; allow 167.82.128.0/20; allow 167.82.160.0/20; allow 167.82.224.0/20; … (7 more lines)
// nginx_fastly_deny.conf
# Fastly IP Ranges # Updated: 2026-02-11 15:35:31 # 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_fastly_deny.conf; deny 23.235.32.0/20; deny 43.249.72.0/22; deny 103.244.50.0/24; deny 103.245.222.0/23; deny 103.245.224.0/24; deny 104.156.80.0/20; deny 140.248.64.0/18; deny 140.248.128.0/17; deny 146.75.0.0/17; deny 151.101.0.0/16; deny 157.52.64.0/18; deny 167.82.0.0/17; deny 167.82.128.0/20; deny 167.82.160.0/20; deny 167.82.224.0/20; … (7 more lines)