// HETZNER / APACHE
Hetzner · Apache
Apache httpd Require ip directives for Hetzner. 689 CIDRs, refreshed daily.
// apache_hetzner_allow.conf
# Hetzner IP Ranges # Updated: 2026-06-25 03:23:34 # 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 Apache, # add the following line to your .htaccess file or your virtual host configuration file (e.g., /etc/apache2/sites-available/000-default.conf): # Include /path/to/apache_hetzner_allow.conf Require ip 2.28.0.0/15 Require ip 5.9.0.0/16 Require ip 5.75.128.0/17 Require ip 5.78.0.0/16 Require ip 5.161.0.0/16 Require ip 23.88.0.0/17 Require ip 31.58.88.0/24 Require ip 37.27.0.0/16 Require ip 45.15.99.0/24 Require ip 45.145.227.0/24 Require ip 46.4.0.0/16 Require ip 46.62.128.0/17 Require ip 46.224.0.0/15 Require ip 49.12.0.0/15 Require ip 62.238.0.0/17 … (73 more lines)
// apache_hetzner_deny.conf
# Hetzner IP Ranges # Updated: 2026-06-25 03:23:34 # 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 Apache, # add the following line to your .htaccess file or your virtual host configuration file (e.g., /etc/apache2/sites-available/000-default.conf): # Include /path/to/apache_hetzner_deny.conf Deny from 2.28.0.0/15 Deny from 5.9.0.0/16 Deny from 5.75.128.0/17 Deny from 5.78.0.0/16 Deny from 5.161.0.0/16 Deny from 23.88.0.0/17 Deny from 31.58.88.0/24 Deny from 37.27.0.0/16 Deny from 45.15.99.0/24 Deny from 45.145.227.0/24 Deny from 46.4.0.0/16 Deny from 46.62.128.0/17 Deny from 46.224.0.0/15 Deny from 49.12.0.0/15 Deny from 62.238.0.0/17 … (74 more lines)