// GITHUB / NGINX
GitHub · Nginx
Nginx allow/deny config for GitHub. Drop into your server block or http context. 8,732 CIDRs, refreshed daily.
// nginx_github_allow.conf
# Github IP Ranges # Updated: 2026-11-20 02:18:18 # 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 02: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_github_allow.conf; allow 3.41.210.0/24; allow 3.42.157.0/24; allow 3.219.87.128/32; allow 4.148.0.0/14; allow 4.152.0.0/14; allow 4.156.0.0/15; allow 4.158.254.48/28; allow 4.159.108.160/28; allow 4.159.197.192/28; allow 4.163.8.144/28; allow 4.172.0.0/14; allow 4.180.0.0/16; allow 4.186.157.192/28; allow 4.187.247.160/28; allow 4.195.217.80/28; … (6483 more lines)
// nginx_github_deny.conf
# Github IP Ranges # Updated: 2026-11-20 02:18:18 # 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 02: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_github_deny.conf; deny 3.41.210.0/24; deny 3.42.157.0/24; deny 3.219.87.128/32; deny 4.148.0.0/14; deny 4.152.0.0/14; deny 4.156.0.0/15; deny 4.158.254.48/28; deny 4.159.108.160/28; deny 4.159.197.192/28; deny 4.163.8.144/28; deny 4.172.0.0/14; deny 4.180.0.0/16; deny 4.186.157.192/28; deny 4.187.247.160/28; deny 4.195.217.80/28; … (6483 more lines)