cloud-ip-ranges

Fastly IP ranges

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

categoryCDN & Edge
websitehttps://fastly.com
ranges24 (21 IPv4, 3 IPv6)
last change
downloads29,912
download txt csv json — permalinks, always the latest data
curl -O https://cloud-ip-ranges.com/download/fastly.txt

Ranges

Sample of 24 of 24 ranges. Download the full list above, or check a specific IP.

CIDR Type Region Tag
23.235.32.0/20 ipv4 global fastly
43.249.72.0/22 ipv4 global fastly
90.98.0.0/17 ipv4 global fastly
90.98.128.0/18 ipv4 global fastly
103.244.50.0/24 ipv4 global fastly
103.245.222.0/23 ipv4 global fastly
103.245.224.0/24 ipv4 global fastly
104.156.80.0/20 ipv4 global fastly
140.248.64.0/18 ipv4 global fastly
140.248.128.0/17 ipv4 global fastly
146.75.0.0/17 ipv4 global fastly
151.101.0.0/16 ipv4 global fastly
157.52.64.0/18 ipv4 global fastly
167.82.0.0/17 ipv4 global fastly
167.82.128.0/20 ipv4 global fastly
167.82.160.0/20 ipv4 global fastly
167.82.224.0/20 ipv4 global fastly
172.111.64.0/18 ipv4 global fastly
185.31.16.0/22 ipv4 global fastly
199.27.72.0/21 ipv4 global fastly
199.232.0.0/16 ipv4 global fastly
2a04:4e40::/32 ipv6 global fastly
2a04:4e42::/31 ipv6 global fastly
2a04:4e44::/32 ipv6 global fastly

Blocking Fastly

iptables

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

ufw

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

fail2ban

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

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

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

pfSense / OPNsense

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

About

These IP ranges are sourced directly from Fastly's official feeds and are updated regularly to ensure accuracy. The data includes IPv4 and IPv6 ranges used by Fastly'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, DigitalOcean, DuckDuckBot, 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