If your server is blocking Baidu's User-Agent (UA) or IP address, you will need to modify your server's configuration to allow Baidu's UA/IP to access your site. This can be done by adding the UA/IP to your server's allowlist.
To do this, you will need to access your server's configuration files, which will vary depending on your hosting environment. If you are using a shared hosting environment, you may need to contact your hosting provider for assistance.
Once you have access to your server's configuration files, you can add the following lines of code to your .htaccess file to allowlist Baidu's UA/IP:
The code above will allow Baidu's UA/IP to access your site, while blocking all other user agents and IP addresses. Make sure to replace the IP addresses in the code above with Baidu's current IP addresses.
Once you have added the code to your .htaccess file, save the file and check to see if Baidu's UA/IP can access your site. You can use Baidu's Webmaster Tools to verify that your site is being indexed by Baidu.
If your server is blocking Baidu's User-Agent (UA) or IP address, you will need to modify your server's configuration to allow Baidu's UA/IP to access your site. This can be done by adding the UA/IP to your server's allowlist.
To do this, you will need to access your server's configuration files, which will vary depending on your hosting environment. If you are using a shared hosting environment, you may need to contact your hosting provider for assistance.
Once you have access to your server's configuration files, you can add the following lines of code to your .htaccess file to allowlist Baidu's UA/IP:
The code above will allow Baidu's UA/IP to access your site, while blocking all other user agents and IP addresses. Make sure to replace the IP addresses in the code above with Baidu's current IP addresses.
Once you have added the code to your .htaccess file, save the file and check to see if Baidu's UA/IP can access your site. You can use Baidu's Webmaster Tools to verify that your site is being indexed by Baidu.