// DISCORD / NGINX
Discord · Nginx
Nginx allow/deny config for Discord. Drop into your server block or http context. 20 CIDRs, refreshed daily.
// nginx_discord_allow.conf
# Discord IP Ranges # Updated: 2026-09-20 02:33:36 # 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_discord_allow.conf; allow 34.73.62.161/32; allow 34.74.100.84/32; allow 34.74.113.139/32; allow 34.75.19.245/32; allow 34.138.20.118/32; allow 34.138.218.50/32; allow 34.139.115.226/32; allow 34.148.171.212/32; allow 35.190.130.193/32; allow 35.196.132.85/32; allow 35.227.34.53/32; allow 35.227.62.178/32; allow 35.231.24.24/32; allow 35.231.179.220/32; allow 35.237.4.214/32; … (6 more lines)
// nginx_discord_deny.conf
# Discord IP Ranges # Updated: 2026-09-20 02:33:36 # 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_discord_deny.conf; deny 34.73.62.161/32; deny 34.74.100.84/32; deny 34.74.113.139/32; deny 34.75.19.245/32; deny 34.138.20.118/32; deny 34.138.218.50/32; deny 34.139.115.226/32; deny 34.148.171.212/32; deny 35.190.130.193/32; deny 35.196.132.85/32; deny 35.227.34.53/32; deny 35.227.62.178/32; deny 35.231.24.24/32; deny 35.231.179.220/32; deny 35.237.4.214/32; … (6 more lines)