CLOUD-IP // v2026.05
UPDATED 2026-05-26 PROVIDERS 24 LIVE
// GITHUB / NGINX

GitHub · Nginx

Nginx allow/deny config for GitHub. Drop into your server block or http context. 6,736 CIDRs, refreshed daily.

// nginx_github_allow.conf

DOWNLOAD ↓  · 
# Github IP Ranges
# Updated: 2026-05-21 03:20:30
# 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_github_allow.conf;

allow 192.30.252.0/22;
allow 185.199.108.0/22;
allow 140.82.112.0/20;
allow 143.55.64.0/20;
allow 2a0a:a440::/29;
allow 2606:50c0::/32;
allow 192.30.252.0/22;
allow 185.199.108.0/22;
allow 140.82.112.0/20;
allow 143.55.64.0/20;
allow 2a0a:a440::/29;
allow 2606:50c0::/32;
allow 20.201.28.151/32;
allow 20.205.243.166/32;
allow 20.87.245.0/32;
… (6722 more lines)

// nginx_github_deny.conf

DOWNLOAD ↓  · 
# Github IP Ranges
# Updated: 2026-05-21 03:20:30
# 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_github_deny.conf;

deny 192.30.252.0/22;
deny 185.199.108.0/22;
deny 140.82.112.0/20;
deny 143.55.64.0/20;
deny 2a0a:a440::/29;
deny 2606:50c0::/32;
deny 192.30.252.0/22;
deny 185.199.108.0/22;
deny 140.82.112.0/20;
deny 143.55.64.0/20;
deny 2a0a:a440::/29;
deny 2606:50c0::/32;
deny 20.201.28.151/32;
deny 20.205.243.166/32;
deny 20.87.245.0/32;
… (6722 more lines)