Baidu Network IP Address Ranges in China and Other Countries

Baidu Baidu has the largest search engine in China. I have no clue what the market share is and there’s no way to find out. I’m not aware of any other services this search engine has to offer.

If you want to block Baidu IP addresses, or simply reroute requests, I’m going to give you the IP address ranges you need.

Baidu IP Address Standard Ranges


European Union (based in Hong Kong):

Hong Kong:



Baidu IP Address CIDR Ranges


European Union (based in Hong Kong):

Hong Kong:



Baidu User Agents

If you use “Baiduspider” to block or reroute requests, you’ll get most of them but not all. Baidu uses other user agents. One includes “baidu Transcoder” and another includes “” but without “Baiduspider”. There are probably more.

Many search engines will cloak themselves as web browsers. The user agents won’t show you who they are. I’m sure Baidu does this as well. If you go by user agents only, you’ll miss the cloaked requests. It’s a good idea to use the known IP address ranges along with the correct user agents.

I don’t know why they cloak themselves but I can guess. They’re probably trying to find out if website owners are showing the same things to bots as they show to people.

There are a few other entities in China who cloak themselves as this search engine, just like some cloak themselves as other search engines. I can only assume they’re trying to get around certain user agent blocks.

I don’t allow any of the bots on my site. Until recently I only used “Baidu” as the user agent. It caught all the bots that identified themselves but not those who didn’t. It also caught those pretending. I’m now using all the CIDR ranges I listed above.

I’ll be sure to update this article if I find more of their IP address ranges.

Why Block Baidu?

Contrary to popular belief and TV and movie representation, very few Chinese people can speak English. Out of those very few, it’s extremely unlikely that any will visit my website.

I prefer writing like I speak as much as possible. It’s American English with contractions and a little slang here and there. If Chinese people living in the United States want to read an article, they’ll need a translation service (like Google Translate) regardless of what search engine they use to get to it.

I’m not blocking China completely. I focus on blocking the search engines, vulnerability scanners and comment spammers.

Update February 16, 2018

Added and to the Hong Kong sections.

February 10, 2018

Web Development

Previous and Next Articles:

« »


Your comment will appear below the form when it’s approved. When the page redisplays after hitting the send button (it can take a few seconds), your comment has been sent.

When replying to someone else’s comment, please start the comment with “@” and the name so I can put it in the right place.

Subscribe to Articles by Email

RSS Feed Link

Books by William James Asberry

Comments Policy
Privacy Policy

RTCX established February 28, 2011