# How to identify your web crawler to the sites it visits | Spider

What a site operator can check about your crawler from one request, what they must take on trust, and a dated echo of the line a server received.

Canonical: https://spider.cloud/learn/identify-your-crawler/

To identify your web crawler, send its name, a version, a URL that describes it and a contact address in the User-Agent header of every request. A site operator can read that line but cannot prove it, so back it with things they can check: a page at the URL, a mailbox someone answers, and a list of the addresses you send from.

The header's format has its own page, [how to write a user agent that names you](/learn/user-agent/). This one sits on the operator's side of the request. A [web scraping](/web-scraping/) job is a guest on someone else's server, and the operator decides what to do with a guest from one line in a log.

## What an operator can read from one request

Picture the operator of a small site. Traffic went up overnight, and they open the access log to see who caused it. For each request they have the time it arrived, the path it asked for, the status they returned, the address it came from, and whatever headers their server was set up to record. Which headers make it into the log is the operator's choice, not yours, and the User-Agent is the one most setups keep.

From that one line they want answers to a short list of questions.

1. What does this client call itself? Usually the product token, such as `examplebot`, is the first word of the User-Agent. It does not have to be. Some crawlers wrap their name in a browser-style string, and the robots.txt standard allows that. RFC 9309 shows such a header and notes that "the product token (ExampleBot) is a substring of the User-Agent HTTP header." The operator looks for the word they would write in robots.txt, wherever it sits.
2. Which build sent it? The version after the slash, such as `1.0`, if the client sent one.
3. What does it say it is for? The URL in the comment should lead to a page that answers this.
4. Who does it say to write to? The email address in the comment, or in a From header if the client sent one and the server logged it.
5. Is any of that true? The header alone cannot answer this one.

RFC 9110, the HTTP standard, describes how servers use the User-Agent header. Its words are that the header "is often used by servers to help identify the scope of reported interoperability problems". In practice that means sorting requests by the client that sent them. A crawler that names nobody gives the operator nothing to sort by. It may send no User-Agent at all, or the default of its HTTP library, or a generic string that many unrelated clients also send. In each case its requests end up in a pile with strangers, and the first four questions have no answer.

This clip reads one User-Agent line the way a site operator does.

What one User-Agent line answers. 43 s, no sound. The words are on screen, and the captions button shows them at your own text size.

Read the transcript

What one User-Agent line answers. The questions a site operator asks about a crawler they have never met.

The line answers four of an operator's questions, not the fifth. What does it call itself? examplebot. Which build sent it? 1.0. What is it for? example.com/bot. Who do I write to? bot\@example.com. Is any of that true? not in the line.

Proof comes from outside the header, and each kind has a limit. the sending address: supports the name, if yours alone. the mailbox: a reply shows that someone is there. the page: says what the job is, in your words. 3: things an operator can check. 0: of them inside the request.

A site can read the line. It cannot prove it from the line. What the header gives: one User-Agent line. claims: Claims to check from outside. nothing: No name, so nothing to check. This run: claims.

Read the full page. The page is at spider.cloud/learn/identify-your-crawler.

## One field of the log line, echoed back

We have no site operator's log to print. The nearest public stand-in is `httpbin.org/user-agent`, a test page that answers with the User-Agent value it received and nothing else. Read its answer as one field of the log line from the section above.

The body below sets `user_agent` and no From header, so From is not part of this test. Your key goes in the `SPIDER_API_KEY` variable.

```bash
curl -s https://api.spider.cloud/scrape \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://httpbin.org/user-agent", "request": "http", "return_format": "raw", "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}'
```

The run is from 2026-11-20 at 20:11 UTC, and the call took 1.7 seconds. One page came back. This is that page as our client printed it, with the `content` field left as the raw text the echo page returned.

```json
[
  {
    "url": "https://httpbin.org/user-agent",
    "status": 200,
    "error": null,
    "content": "{\n  \"user-agent\": \"examplebot/1.0 (+https://example.com/bot; bot@example.com)\"\n}\n"
  }
]
```

Go down the operator's list with that value in hand. The client calls itself `examplebot`, build `1.0`. It points to `https://example.com/bot` as the page about it and to `bot@example.com` as the place to write. Four questions now have an answer, and the client gave every one of them about itself.

The fifth is still open. Nothing in the reply shows that software called examplebot sent the request, that the page at the URL describes what the crawler does, or that the mailbox reaches the person who runs it. Anyone could send the same string tomorrow. The echo also returns one header only. It says nothing about the address the request came from, about any other header, or about how a given server would record the request.

To close the fifth question an operator needs evidence from outside the header. You can give them three kinds: the address you send from, a mailbox and a page.

## The address a request came from

Anyone can type any name into a User-Agent header. The address a request came from is harder to make up, which is why operators lean on it. Google's documentation for site owners shows the method. It describes verification as "useful if you're concerned that spammers or other troublemakers are accessing your site while claiming to be from Google."

The manual check starts from the address in the log. The operator runs a reverse DNS lookup on it and confirms the hostname sits under one of Google's domains. Then they look that hostname up again, and the last step is to "Verify that it's the same as the original accessing IP address from your logs." For checks at scale, Google publishes its address ranges as JSON files that an operator can match against.

That check is strong for Google because the hostnames and the ranges are Google's own. A small crawler can offer a weaker version of it. If you send from machines you run, list their addresses, or a hostname pattern that resolves to them, on the page your User-Agent points to.

How much a match proves depends on who else uses the address. When only your crawler sends from it, a match supports the name in the header. When other clients send from it too, a match shows the request came from that shared address and no more. It cannot say which client behind the address sent the request. So say on the page which kind you have. If you publish no addresses at all, say that too, and the name stays a claim the operator weighs against how the requests behave.

## The mailbox

RFC 9110 gives the contact its own header. It says a robot should send From so that the person who runs it "can be contacted if problems occur on servers, such as if the robot is sending excessive, unwanted, or invalid requests." Send it as well as the address in the User-Agent comment. It is a separate step from the test above, and the [user agent page](/learn/user-agent/) shows the request field that carries it.

The same section warns operators not to lean on it. In the RFC's words, "A server SHOULD NOT use the From header field for access control or authentication, since its value is expected to be visible to anyone receiving or observing the request". From is a claim, like the name.

An operator can test the mailbox in one way, by writing to it. A reply from someone who can change the job supports the claim. It shows that a person stands behind the address. It does not show that this person sent the request in the log. A bounce or silence proves nothing in either direction. The contact stays unverified, and the operator is back to judging the requests by their behavior.

When the mail is about pace, the [request rate page](/learn/request-rate/) shows how to pick a delay and measure what it gives you.

## The page behind the URL

The page is the third thing an operator can check, and they check it against the request. Write it so the two match.

1. Use the product token on the page exactly as the header sends it. An operator who searched their log for `examplebot` should find the same word in the page's first lines.
2. Host the page and the mailbox on one domain. In the echo above both sit on `example.com`. A header that points to one domain for the page and another for the mail gives the operator two parties to wonder about.
3. Say what the crawler collects and why. If any of it could count as personal data, say what and how long you keep it.
4. List the addresses you send from, with the note about sharing from the section above.
5. Keep a dated line for each version. A request from an old build should still match a description.

Keep the page at a stable address. A log line from last spring still points to it, and a 404 there leaves the operator with a name and nothing behind it.

None of this is permission. Where a site's terms rule out automated clients, a named crawler is still unwelcome until the operator says otherwise, so ask before you send the first request. The rules a site publishes for crawlers are on the [robots.txt page](/learn/robots-txt/).

## Do this, avoid this

### Do this

- Publish the addresses or hostname pattern your crawler sends from, and say whether other clients share them.
- Host the crawler's page and its mailbox on one domain, so each backs the other.
- Keep a dated note for each version on that page, so an old log line still matches a description.
- Run one crawler name per job, so each log line points to one purpose.

### Avoid this

- Expecting the header to prove who you are. Anyone can send the same string.
- Listing shared addresses as if only your crawler used them.
- Collecting personal data that the crawler's page does not mention.
- Reading a clear name as permission on a site whose terms rule out automated clients.

The echo gave an operator four claims and no proof of any of them.

The evidence for those comes from outside the request, and each kind has a limit. An address match supports the name only when the address is yours alone. A reply from the mailbox shows someone is there, and silence leaves the question open. The page says what the job is, in your words. An operator who has all three still weighs them against what your requests do on their site.

## Sources

1. [RFC 9110, HTTP Semantics, sections 10.1.2 and 10.1.5, IETF, June 2022](https://www.rfc-editor.org/rfc/rfc9110.html) Read November 20, 2026
2. [RFC 9309, Robots Exclusion Protocol, section 2.2.1, IETF, September 2022](https://www.rfc-editor.org/rfc/rfc9309.html) Read November 20, 2026
3. [Google Crawling Infrastructure, Verify requests from Google crawlers and fetchers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot) Read November 20, 2026
