Baiduspider (impostor)'s food bowl
the bowl, as bots see itThe bowl is empty. Last time, Barkrowler stole the Cached Alt-Text Almonds, 15 days ago.
Identification
Its full user-agent string, exactly as it arrives at the gate:
This is not a real species. It is a costume: requests that use Baiduspider's name but fail reverse-DNS or IP-range checks against Baidu's network.
How it was checked: its reverse DNS must end in .baidu.com or .baidu.jp and resolve back to the same address. Each address is checked when it first visits, and the result is kept for a day.
How to block Baiduspider (impostor)
Baiduspider (impostor) does not read robots.txt, so a polite sign is wasted on it. Refuse it at your web server or firewall instead. User agents are easy to fake, so pair this with rate limiting.
# robots.txt will not stop Baiduspider (impostor). Block it at the server.
# nginx
if ($http_user_agent ~* "Baiduspider") {
return 403;
}The same thing on Apache:
# Apache (.htaccess)
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC]
RewriteRule .* - [F,L]Observed behaviour
Most active around 15:00. Office hours, like a professional.
Requested 28 disallowed pages out of 59 requests. Never read robots.txt.
Has never followed the hidden link to /trap/. Either well trained or very lucky.
Where it comes from
Claims to be Baiduspider. Real Baiduspider traffic comes from Baidu's own network; these visits came from:
Networks and countries come from the visitor's IP address, looked up in a local copy of the DB-IP database. The addresses themselves are never stored.
Keeper's field notes
Questions site owners ask
Does Baiduspider (impostor) respect robots.txt?
No. It has never requested robots.txt here, and it has fetched disallowed pages 28 times.
Will blocking Baiduspider (impostor) hurt my search rankings?
No. Nothing respectable will miss it.
How often does Baiduspider (impostor) visit?
Here, about 1 requests a day over the last week. Visits to your site depend on its size, how often it changes, and how many links point to it.