// DIGITALOCEAN / APACHE
DigitalOcean · Apache
Apache httpd Require ip directives for DigitalOcean. 1,219 CIDRs, refreshed daily.
// apache_digitalocean_allow.conf
# Digitalocean IP Ranges # Updated: 2026-05-20 03:19:32 # 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 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_digitalocean_allow.conf Require ip 5.101.96.0/21 Require ip 5.101.104.0/22 Require ip 24.144.64.0/22 Require ip 24.144.68.0/22 Require ip 24.144.74.0/23 Require ip 24.144.76.0/22 Require ip 24.144.80.0/20 Require ip 24.144.96.0/19 Require ip 24.199.64.0/22 Require ip 24.199.68.0/22 Require ip 24.199.72.0/21 Require ip 24.199.80.0/20 Require ip 24.199.96.0/20 Require ip 24.199.112.0/20 Require ip 37.139.0.0/19 … (1204 more lines)
// apache_digitalocean_deny.conf
# Digitalocean IP Ranges # Updated: 2026-05-20 03:19:32 # 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 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_digitalocean_deny.conf Deny from 5.101.96.0/21 Deny from 5.101.104.0/22 Deny from 24.144.64.0/22 Deny from 24.144.68.0/22 Deny from 24.144.74.0/23 Deny from 24.144.76.0/22 Deny from 24.144.80.0/20 Deny from 24.144.96.0/19 Deny from 24.199.64.0/22 Deny from 24.199.68.0/22 Deny from 24.199.72.0/21 Deny from 24.199.80.0/20 Deny from 24.199.96.0/20 Deny from 24.199.112.0/20 Deny from 37.139.0.0/19 … (1205 more lines)