cloud-ip-ranges

GPTBot IP ranges

Current IP ranges (CIDRs) used by the GPTBot crawler, updated daily.

categoryAI Crawlers & Bots
websitehttps://openai.com
ranges21 (21 IPv4, 0 IPv6)
last change
downloads756
download txt csv json — permalinks, always the latest data
curl -O https://cloud-ip-ranges.com/download/gptbot.txt

Ranges

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

CIDR Type
4.227.36.0/25 ipv4
20.125.66.80/28 ipv4
20.171.206.0/24 ipv4
20.171.207.0/24 ipv4
52.230.152.0/24 ipv4
74.7.175.128/25 ipv4
74.7.227.0/25 ipv4
74.7.227.128/25 ipv4
74.7.228.0/25 ipv4
74.7.230.0/25 ipv4
74.7.241.0/25 ipv4
74.7.241.128/25 ipv4
74.7.242.0/25 ipv4
74.7.243.128/25 ipv4
74.7.244.0/25 ipv4
132.196.86.0/24 ipv4
172.182.202.0/25 ipv4
172.182.204.0/24 ipv4
172.182.207.0/25 ipv4
172.182.214.0/24 ipv4
172.182.215.0/24 ipv4

Blocking GPTBot

iptables

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

ufw

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

fail2ban

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

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

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

pfSense / OPNsense

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

About

These IP ranges are sourced from GPTBot's official feed and are updated regularly. Use them to verify that requests claiming to be GPTBot actually originate from it, or to rate-limit or block it at the network edge. To opt out of crawling entirely, prefer a robots.txt rule — blocking by IP can prevent the crawler from reading your robots.txt at all. Last update was about 1 month 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, Fastly, Gabia, G-Core, GitHub, Googlebot, Google Cloud, Google Public DNS, Google Services, 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