// ALIBABA / NGINX
Alibaba · Nginx
Nginx allow/deny config for Alibaba. Drop into your server block or http context. 2,304 CIDRs, refreshed daily.
// nginx_alibaba_allow.conf
# Alibaba IP Ranges # Updated: 2026-06-13 03:20:01 # 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_alibaba_allow.conf; allow 5.181.224.0/23; allow 8.128.4.0/22; allow 8.128.4.0/23; allow 8.128.6.0/23; allow 8.128.32.0/19; allow 8.128.32.0/20; allow 8.128.48.0/20; allow 8.128.64.0/20; allow 8.128.64.0/21; allow 8.128.72.0/21; allow 8.128.80.0/20; allow 8.128.80.0/21; allow 8.128.88.0/21; allow 8.128.96.0/21; allow 8.128.96.0/22; … (2290 more lines)
// nginx_alibaba_deny.conf
# Alibaba IP Ranges # Updated: 2026-06-13 03:20:01 # 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_alibaba_deny.conf; deny 5.181.224.0/23; deny 8.128.4.0/22; deny 8.128.4.0/23; deny 8.128.6.0/23; deny 8.128.32.0/19; deny 8.128.32.0/20; deny 8.128.48.0/20; deny 8.128.64.0/20; deny 8.128.64.0/21; deny 8.128.72.0/21; deny 8.128.80.0/20; deny 8.128.80.0/21; deny 8.128.88.0/21; deny 8.128.96.0/21; deny 8.128.96.0/22; … (2290 more lines)