// BAIDU / APACHE
baidu · Apache
Apache httpd Require ip directives for baidu. 195 CIDRs, refreshed daily.
// apache_baidu_allow.conf
# Baidu IP Ranges # Updated: 2026-07-12 03:46:25 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 02:00 UTC # To restrict access to only these IPs in Apache, # add the following line to your .htaccess file or your virtual host configuration file (e.g., /etc/apache2/sites-available/000-default.conf): # Include /path/to/apache_baidu_allow.conf Require ip 42.199.240.0/22 Require ip 45.113.192.0/23 Require ip 45.113.194.0/24 Require ip 103.235.44.0/22 Require ip 104.193.88.0/23 Require ip 104.193.90.0/24 Require ip 106.12.0.0/17 Require ip 106.12.128.0/18 Require ip 106.12.192.0/19 Require ip 106.12.224.0/20 Require ip 106.12.240.0/21 Require ip 106.13.0.0/17 Require ip 106.13.128.0/18 Require ip 106.13.192.0/19 Require ip 106.13.224.0/20 … (34 more lines)
// apache_baidu_deny.conf
# Baidu IP Ranges # Updated: 2026-07-12 03:46:25 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 02:00 UTC # To deny access from these IPs in Apache, # add the following line to your .htaccess file or your virtual host configuration file (e.g., /etc/apache2/sites-available/000-default.conf): # Include /path/to/apache_baidu_deny.conf Deny from 42.199.240.0/22 Deny from 45.113.192.0/23 Deny from 45.113.194.0/24 Deny from 103.235.44.0/22 Deny from 104.193.88.0/23 Deny from 104.193.90.0/24 Deny from 106.12.0.0/17 Deny from 106.12.128.0/18 Deny from 106.12.192.0/19 Deny from 106.12.224.0/20 Deny from 106.12.240.0/21 Deny from 106.13.0.0/17 Deny from 106.13.128.0/18 Deny from 106.13.192.0/19 Deny from 106.13.224.0/20 … (35 more lines)