Menu

RTCX

Close

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

China:

180.76.0.0-180.76.255.255

European Union (based in Hong Kong):

185.10.104.0-185.10.107.255

Hong Kong:

63.243.252.0-63.243.252.255
103.235.44.0-103.235.47.255

Japan:

119.63.192.0-119.63.199.255

USA:

104.193.88.0-104.193.91.255

Baidu IP Address CIDR Ranges

China:

180.76.0.0/16

European Union (based in Hong Kong):

185.10.104.0/22

Hong Kong:

63.243.252.0/24
103.235.44.0/22

Japan:

119.63.192.0/21

USA:

104.193.88.0/22

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 “baidu.com” 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 63.243.252.0-63.243.252.255 and 63.243.252.0/24 to the Hong Kong sections.

By:
February 10, 2018

Categories:
Web Development

Previous and Next Articles:

« »

Comments:

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