// GOOGLE SERVICES / NGINX
Google Services · Nginx
Nginx allow/deny config for Google Services. Drop into your server block or http context. 340 CIDRs, refreshed daily.
// nginx_googleservices_allow.conf
# Googleservices IP Ranges # Updated: 2026-07-12 03:12:28 # 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_googleservices_allow.conf; allow 8.8.4.0/24; allow 8.8.8.0/24; allow 8.35.200.0/21; allow 8.230.128.0/17; allow 8.231.0.0/19; allow 8.234.0.0/23; allow 8.234.18.0/23; allow 8.234.20.0/22; allow 8.234.24.0/21; allow 8.236.0.0/15; allow 34.0.228.0/22; allow 34.0.232.0/21; allow 34.1.64.0/18; allow 34.2.64.0/21; allow 34.2.72.0/22; … (326 more lines)
// nginx_googleservices_deny.conf
# Googleservices IP Ranges # Updated: 2026-07-12 03:12:28 # 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_googleservices_deny.conf; deny 8.8.4.0/24; deny 8.8.8.0/24; deny 8.35.200.0/21; deny 8.230.128.0/17; deny 8.231.0.0/19; deny 8.234.0.0/23; deny 8.234.18.0/23; deny 8.234.20.0/22; deny 8.234.24.0/21; deny 8.236.0.0/15; deny 34.0.228.0/22; deny 34.0.232.0/21; deny 34.1.64.0/18; deny 34.2.64.0/21; deny 34.2.72.0/22; … (326 more lines)