// YANDEX / NGINX
yandex · Nginx
Nginx allow/deny config for yandex. Drop into your server block or http context. 142 CIDRs, refreshed daily.
// nginx_yandex_allow.conf
# Yandex IP Ranges # Updated: 2026-07-12 03:18:07 # 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_yandex_allow.conf; allow 5.45.192.0/18; allow 5.255.192.0/18; allow 31.44.8.0/21; allow 37.9.64.0/18; allow 37.140.128.0/18; allow 37.230.168.0/23; allow 37.230.172.0/22; allow 46.21.244.0/22; allow 46.243.209.0/24; allow 46.243.210.0/23; allow 51.250.0.0/17; allow 62.84.112.0/20; allow 77.88.0.0/18; allow 81.26.176.0/20; allow 84.201.128.0/18; … (50 more lines)
// nginx_yandex_deny.conf
# Yandex IP Ranges # Updated: 2026-07-12 03:18:07 # 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_yandex_deny.conf; deny 5.45.192.0/18; deny 5.255.192.0/18; deny 31.44.8.0/21; deny 37.9.64.0/18; deny 37.140.128.0/18; deny 37.230.168.0/23; deny 37.230.172.0/22; deny 46.21.244.0/22; deny 46.243.209.0/24; deny 46.243.210.0/23; deny 51.250.0.0/17; deny 62.84.112.0/20; deny 77.88.0.0/18; deny 81.26.176.0/20; deny 84.201.128.0/18; … (50 more lines)