OpenAI ChatGPT logo OpenAI ChatGPT IP Ranges

Download current IP ranges (CIDRs) for OpenAI ChatGPT cloud infrastructure.

Provider Information

Official Website
https://openai.com
Total IP Ranges
37
Last Updated
Total Downloads
429

Download Options

Choose your preferred format. All downloads are permalinks that always provide the latest data.

Usage Examples - Blocking OpenAI ChatGPT IPs

Download the IP ranges

# Download with curl
curl -O https://cloud-ip-ranges.com/download/openai-chatgpt.txt

# Or download with wget
wget https://cloud-ip-ranges.com/download/openai-chatgpt.txt

Block with iptables (Linux firewall)

# Download and block OpenAI ChatGPT IPs with iptables
wget -O openai-chatgpt_ips.txt 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_ips.txt

Block with UFW (Ubuntu/Debian firewall)

# Download and block OpenAI ChatGPT IPs with UFW
wget -O openai-chatgpt_ips.txt https://cloud-ip-ranges.com/download/openai-chatgpt.txt
while read ip; do
  ufw deny from $ip
  ufw deny to $ip
done < openai-chatgpt_ips.txt

Block with fail2ban (intrusion prevention)

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

# Create jail configuration
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_ips.txt
findtime = 1
bantime = -1
maxretry = 1
EOF

# Download IP list and restart fail2ban
wget -O /tmp/openai-chatgpt_ips.txt https://cloud-ip-ranges.com/download/openai-chatgpt.txt
sudo systemctl restart fail2ban

Block with pfSense/OPNsense (FreeBSD firewall)

# Create alias table for OpenAI ChatGPT IPs
# 1. Download the IP list
wget -O openai-chatgpt_ips.txt https://cloud-ip-ranges.com/download/openai-chatgpt.txt

# 2. In pfSense/OPNsense web interface:
# - Go to Firewall > Aliases
# - Create new alias named "OPENAI-CHATGPT_BLOCK"
# - Type: Network(s)
# - Import the downloaded file
#
# 3. Create firewall rule:
# - Go to Firewall > Rules > WAN
# - Add rule: Action=Block, Source=OPENAI-CHATGPT_BLOCK

About OpenAI ChatGPT IP Ranges

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 months ago.