cloud-ip-ranges

OpenAI ChatGPT IP ranges

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

categorySaaS & Business APIs
websitehttps://openai.com
ranges153 (153 IPv4, 0 IPv6)
last change
downloads54,757
download txt csv json — permalinks, always the latest data
curl -O https://cloud-ip-ranges.com/download/openai-chatgpt.txt

Ranges

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

CIDR Type
4.151.71.176/28 ipv4
4.151.119.48/28 ipv4
4.189.118.208/28 ipv4
4.197.64.0/28 ipv4
4.197.64.48/28 ipv4
4.197.115.112/28 ipv4
4.201.232.64/28 ipv4
4.205.128.176/28 ipv4
4.218.24.64/28 ipv4
4.226.200.16/28 ipv4
4.226.226.32/28 ipv4
9.129.0.0/17 ipv4
9.160.96.16/28 ipv4
9.160.128.16/28 ipv4
9.160.128.64/28 ipv4
9.205.8.48/28 ipv4
9.205.8.64/28 ipv4
9.205.128.32/28 ipv4
9.205.128.48/28 ipv4
9.234.96.192/28 ipv4
9.234.97.96/28 ipv4
13.65.138.112/28 ipv4
13.67.72.16/28 ipv4
13.71.2.208/28 ipv4
13.76.32.208/28 ipv4

Blocking OpenAI ChatGPT

iptables

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

ufw

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

fail2ban

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

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

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

pfSense / OPNsense

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

About

These IP ranges are sourced directly from OpenAI ChatGPT's official feeds and are updated regularly to ensure accuracy. The data includes IPv4 and IPv6 ranges used by OpenAI ChatGPT's infrastructure worldwide. Last update was 6 days 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, GPTBot, Hetzner, Hostway, Huawei Cloud, IBM Cloud, iCloud Private Relay, Internet Archive, IVPN, Leaseweb, Linode, Meta, Microsoft 365, Mistral, Mullvad, NHN Cloud, NordVPN, 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