# Baiduspider

> Baiduspider is Baidu's crawler for building the index its search and answers draw on. Here's how to recognize it and check a request really is it.

## Baiduspider facts

- **Operator:** Baidu
- **Type:** Crawler
- **Why it fetches:** Builds a search or answer index
- **User agent contains:** `Baiduspider`
- **Verified by:** reverse DNS
- **Operator's documentation:** [help.baidu.com/question?prod_id=99&class=0&id=3001](https://help.baidu.com/question?prod_id=99&class=0&id=3001)

## Allow or block Baiduspider

Yes, if you want to appear in Baidu's search and answers. Blocking it can keep your pages out of them.

To ask it to stay out, add this to robots.txt: `User-agent: Baiduspider` then `Disallow: /`. Whether it follows robots.txt is Baidu's call; [its documentation](https://help.baidu.com/question?prod_id=99&class=0&id=3001) says.

## How to tell a real Baiduspider from an impostor

Anyone can put "Baiduspider" in a user agent. What can't be faked is below.

- **Check reverse DNS.** Look up the requesting IP's host name; it should end in `baidu.com` or `baidu.jp`. Then look that name up and make sure it resolves back to the same IP, since anyone can set a reverse DNS name on their own addresses.

## How Punchline counts Baiduspider

Punchline labels a request that names Baiduspider with how sure it is: **verified** or **declared** when the evidence checks out, a lower tier when it can't be checked, and **impostor** when the evidence contradicts it. Each visit is counted under Baidu, with its purpose, so you can see whether Baiduspider is reading your site and which pages it reads. [How it works](https://punchlineanalytics.com/how-it-works) · [Known agents](https://punchlineanalytics.com/docs/agents)

[See which agents read your site](https://app.punchlineanalytics.com/signup)
