// DIGITALOCEAN / APACHE
DigitalOcean · Apache
Apache httpd Require ip directives for DigitalOcean. 1,226 CIDRs, refreshed daily.
// apache_digitalocean_allow.conf
# Digitalocean IP Ranges # Updated: 2026-06-30 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 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_digitalocean_allow.conf Require ip 5.101.96.0/21 Require ip 5.101.104.0/22 Require ip 24.144.64.0/21 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/18 Require ip 37.139.0.0/19 Require ip 45.55.0.0/16 Require ip 46.101.0.0/16 Require ip 64.23.128.0/17 Require ip 64.225.0.0/17 Require ip 64.226.64.0/18 Require ip 64.227.0.0/17 … (217 more lines)
// apache_digitalocean_deny.conf
# Digitalocean IP Ranges # Updated: 2026-06-30 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 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_digitalocean_deny.conf Deny from 5.101.96.0/21 Deny from 5.101.104.0/22 Deny from 24.144.64.0/21 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/18 Deny from 37.139.0.0/19 Deny from 45.55.0.0/16 Deny from 46.101.0.0/16 Deny from 64.23.128.0/17 Deny from 64.225.0.0/17 Deny from 64.226.64.0/18 Deny from 64.227.0.0/17 … (218 more lines)