Menu

Gray Matter

Close

Baidu Network IP Address Ranges in China and Elsewhere

RT Cunningham | August 11, 2020 (UTC) | Web Development

Baidu NetworkBaidu is 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 giving you the IP address ranges you need.

Baidu IP Address Standard Ranges

China:

106.12.0.0-106.13.255.255
180.76.0.0-180.76.255.255
182.61.0.0-182.61.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:

106.12.0.0/15
180.76.0.0/16
182.61.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 masquerade 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 a lot of them. 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 may be trying to find out if website owners are showing the same things to bots as they show to people. They may just be trying to get past filters.

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 filters as well.

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.

I block China, Hong Kong, Macau and Taiwan completely. Hong Kong was added to my blacklist when China started becoming more aggressive there. If you don’t want to block them, you can at least block the search engine user agents and IP addresses. Baidu is only one of a few search engines in China, but probably the most aggressive.

Photo Attribution: skeeze from Pixabay
Edited and updated. Originally published at one of my other websites in February 2018.

Share: Facebook | Twitter


Gray Matter
Copyright © 2020
RT Cunningham

Comments Policy

Privacy Policy