cloud-ip-ranges

DigitalOcean IP ranges

Current IP ranges (CIDRs) used by the DigitalOcean cloud infrastructure, updated daily.

categoryDatacenter & Hosting
websitehttps://digitalocean.com
ranges1,234 (1,086 IPv4, 148 IPv6)
last change
downloads331,823
download txt csv json — permalinks, always the latest data
curl -O https://cloud-ip-ranges.com/download/digitalocean.txt

Ranges

Sample of 25 of 1,234 ranges. Download the full list above, or check a specific IP.

CIDR Type Region Tag
5.101.96.0/21 ipv4 NL-NH Amsterdam
2a03:b0c0:0:108::/64 ipv6 NL-NH Amsterdam
64.225.84.0/22 ipv4 IN-KA Bangalore
2400:6180:100:d0::/64 ipv6 IN-KA Bangalore
45.55.32.0/19 ipv4 US-NJ Clifton
2604:a880:800:10::/64 ipv6 US-NJ Clifton
129.212.176.0/20 ipv4 US-GA Douglasville
2604:a880:5:1::/64 ipv6 US-GA Douglasville
46.101.68.0/22 ipv4 DE-HE Frankfurt
2a03:b0c0:3:d0::/64 ipv6 DE-HE Frankfurt
201.79.32.0/20 ipv4 US-MO Kansas City
46.101.0.0/18 ipv4 GB-SLG London
2a03:b0c0:1:a1::/64 ipv6 GB-SLG London
168.144.196.0/23 ipv4 US-MEM Memphis
24.144.64.0/22 ipv4 US-NJ North Bergen
2604:a880:400:d0::/64 ipv6 US-NJ North Bergen
168.144.198.0/23 ipv4 US-VA Sandston
45.55.0.0/19 ipv4 US-SF San Francisco
2604:a880:1:20::/64 ipv6 US-SF San Francisco
24.144.68.0/22 ipv4 US-CA Santa Clara
2604:a880:2:d0::/64 ipv6 US-CA Santa Clara
45.55.100.0/22 ipv4 US-NJ Secaucus
2604:a880:0:1010::/64 ipv6 US-NJ Secaucus
68.183.176.0/20 ipv4 SG-05 Singapore
2400:6180:0:d0::/64 ipv6 SG-05 Singapore

Blocking DigitalOcean

iptables

curl -sO https://cloud-ip-ranges.com/download/digitalocean.txt
while read ip; do
  iptables -A INPUT -s $ip -j DROP
  iptables -A OUTPUT -d $ip -j DROP
done < digitalocean.txt

ufw

curl -sO https://cloud-ip-ranges.com/download/digitalocean.txt
while read ip; do
  ufw deny from $ip
  ufw deny to $ip
done < digitalocean.txt

fail2ban

sudo tee /etc/fail2ban/filter.d/digitalocean-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF

sudo tee /etc/fail2ban/jail.d/digitalocean-block.conf << EOF
[digitalocean-block]
enabled = true
filter = digitalocean-block
action = iptables-allports[name=digitalocean]
logpath = /tmp/digitalocean.txt
findtime = 1
bantime = -1
maxretry = 1
EOF

curl -so /tmp/digitalocean.txt https://cloud-ip-ranges.com/download/digitalocean.txt
sudo systemctl restart fail2ban

pfSense / OPNsense

curl -sO https://cloud-ip-ranges.com/download/digitalocean.txt
# Firewall > Aliases: new alias DIGITALOCEAN_BLOCK, type Network(s), import the file
# Firewall > Rules > WAN: Action=Block, Source=DIGITALOCEAN_BLOCK

About

These IP ranges are sourced directly from DigitalOcean's official feeds and are updated regularly to ensure accuracy. The data includes IPv4 and IPv6 ranges used by DigitalOcean's infrastructure worldwide. Last update was about 3 hours ago.

Other providers

AirVPN, Akamai, Alibaba, Alpha Strike Labs, Amazonbot, Amzn-SearchBot, Amzn-User, Anthropic, AppleBot, Atlassian, AWS, Azure, Backblaze, Baidu, BinaryEdge, BingBot, Bunny, CacheFly, CCBot, Censys, ChatGPT-User, ClaudeBot, Cloudflare, Datadog, DuckDuckBot, Fastly, Gabia, G-Core, GitHub, Googlebot, Google Cloud, Google Public DNS, Google Services, GPTBot, Hetzner, Hostway, Huawei Cloud, IBM Cloud, iCloud Private Relay, Internet Archive, IVPN, Leaseweb, Linode, Meta, Microsoft 365, Mistral, Mullvad, NHN Cloud, NordVPN, OpenAI ChatGPT, OpenAI SearchBot, Oracle Cloud, OVHcloud, OVPN.com, PerplexityBot, Perplexity-User, Pingdom, Private Internet Access, QUIC.cloud, Rackspace, Rapid7 Sonar, Salesforce, Scaleway, Shodan, StatusCake, StormWall, Stretchoid, Sucuri, Telegram, Tencent, TOR, UpCloud, UptimeRobot, Vultr, Wasabi, Windscribe, Yandex, Zoho, Zoom, Zscaler