Baidu IP ranges
Current IP ranges (CIDRs) used by the Baidu cloud infrastructure, updated daily.
| category | Datacenter & Hosting |
|---|---|
| website | https://cloud.baidu.com |
| ranges | 191 (177 IPv4, 14 IPv6) |
| last change | |
| downloads | 498 |
| download | txt csv json — permalinks, always the latest data |
curl -O https://cloud-ip-ranges.com/download/baidu.txt
Ranges
Sample of 25 of 191 ranges. Download the full list above, or check a specific IP.
| CIDR | Type | Tag |
|---|---|---|
| 42.199.240.0/22 | ipv4 | AS38365 |
| 106.12.0.0/18 | ipv4 | AS38365 |
| 106.12.0.0/19 | ipv4 | AS38365 |
| 106.12.32.0/19 | ipv4 | AS38365 |
| 106.12.64.0/18 | ipv4 | AS38365 |
| 106.12.64.0/20 | ipv4 | AS38365 |
| 106.12.80.0/20 | ipv4 | AS38365 |
| 106.12.96.0/20 | ipv4 | AS38365 |
| 2400:da00::/32 | ipv6 | AS38365 |
| 2400:da00:400::/48 | ipv6 | AS38365 |
| 2400:da00:404::/48 | ipv6 | AS38365 |
| 240c:4000::/22 | ipv6 | AS38365 |
| 240c:4081::/32 | ipv6 | AS38365 |
| 240c:4082::/32 | ipv6 | AS38365 |
| 240c:4084::/32 | ipv6 | AS38365 |
| 240c:4085::/32 | ipv6 | AS38365 |
| 45.113.192.0/24 | ipv4 | AS55967 |
| 45.113.193.0/24 | ipv4 | AS55967 |
| 45.113.194.0/24 | ipv4 | AS55967 |
| 103.235.44.0/22 | ipv4 | AS55967 |
| 103.235.45.0/24 | ipv4 | AS55967 |
| 103.235.46.0/24 | ipv4 | AS55967 |
| 103.235.47.0/24 | ipv4 | AS55967 |
| 2402:2b40:7000::/36 | ipv6 | AS55967 |
| 2402:2b40:8000::/36 | ipv6 | AS55967 |
Blocking Baidu
iptables
curl -sO https://cloud-ip-ranges.com/download/baidu.txt
while read ip; do
iptables -A INPUT -s $ip -j DROP
iptables -A OUTPUT -d $ip -j DROP
done < baidu.txt
ufw
curl -sO https://cloud-ip-ranges.com/download/baidu.txt
while read ip; do
ufw deny from $ip
ufw deny to $ip
done < baidu.txt
fail2ban
sudo tee /etc/fail2ban/filter.d/baidu-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF
sudo tee /etc/fail2ban/jail.d/baidu-block.conf << EOF
[baidu-block]
enabled = true
filter = baidu-block
action = iptables-allports[name=baidu]
logpath = /tmp/baidu.txt
findtime = 1
bantime = -1
maxretry = 1
EOF
curl -so /tmp/baidu.txt https://cloud-ip-ranges.com/download/baidu.txt
sudo systemctl restart fail2ban
pfSense / OPNsense
curl -sO https://cloud-ip-ranges.com/download/baidu.txt
# Firewall > Aliases: new alias BAIDU_BLOCK, type Network(s), import the file
# Firewall > Rules > WAN: Action=Block, Source=BAIDU_BLOCK
About
These IP ranges are sourced directly from Baidu's official feeds and are updated regularly to ensure accuracy. The data includes IPv4 and IPv6 ranges used by Baidu's infrastructure worldwide. Last update was 10 minutes ago.
Other providers
AirVPN, Akamai, Alibaba, Alpha Strike Labs, Amazonbot, Amzn-SearchBot, Amzn-User, Anthropic, AppleBot, Atlassian, AWS, Azure, Backblaze, 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 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