Skip to content

About PoliteCrawler

You found this page because a request to your site had this header:

User-Agent: PoliteCrawler/0.7.13 (+https://mark1russell7.github.io/crawler/bot/)

PoliteCrawler is the user agent of polite-crawler, open-source software for research and for AI assistants. A person starts it on their own computer to read pages that they or their assistant asked for. It is not a search engine, and it does not collect training data.

Many people can use the software. When the operator gave a contact, the User-Agent includes it. An email address of the operator also goes into the From header.

  • It reads robots.txt first and obeys it, as RFC 9309 specifies.
  • It sends one request at a time to your site, with a rest of 3 seconds or more between two requests.
  • It fetches the pages that a person or an assistant asks for. A small crawl or a recipe can follow a few links of your site, within a limit of pages and time. It does not follow every link of your site.
  • It checks a watched page on a schedule. An operator can add a page to a watch list. The crawler then checks it again, at most one time in each hour by default.
  • It obeys Retry-After on a 429 or a 503.
  • It stops at a refusal. After a 401 or a 403, it sends no more requests to your site for 1 hour. After a challenge or a 402, it stops for 24 hours. The stop stays when the crawler starts again.
  • It sends conditional requests. With an ETag or a Last-Modified date, your server can answer 304 Not Modified and send no body. When your ETag changes at each response and your Last-Modified date does not, the crawler learns it. It then sends only the date, so a 304 comes back.

Give your robots.txt and pick a job of the crawler. The figure shows one hour of requests to a made-up site with your robots.txt, and the wait after each request. Change the answer to the second page to see what a 429, a 503 or a 403 does.

An hour of PoliteCrawler on your siteThe parser, the scheduler, the pace and the status rules of polite-crawler, on a simulated clock.
What the crawler does

An AI assistant asks for three pages, then asks again during the hour. The crawler obeys the rules for PoliteCrawler and for Claude-User.

Requests
0
Answers with no request
0
Most in one minute
0
At the same time
1 at most

Your access log with the wait after each request

The simulation starts when the figure comes into view.

The simulation starts when the figure comes into view.

  • robots.txt
  • 200, a full page
  • 304, no body
  • 429 or 503
  • 403
  • No request
  • Stopped
  • A wait: the pace
  • Crawl-delay, or a slow server
  • Retry-After, or a backoff

The robots.txt parser, the scheduler of each site, the rest after each request and the meaning of each status are the code of polite-crawler. A small model connects them in place of the full crawler, which needs a store on disk. The site is made up, and the figure sends no request.

The requests as a table
TimeRequestAnswerThen

The figure starts the code of polite-crawler in your browser. This code is the robots.txt parser, the scheduler of each site, the rest after each request (restAfter) and the meaning of each status (classify). The full crawler keeps a store on disk, so it does not operate in a browser. A small model connects these parts in its place. The model obeys the rules on this page, and it sends no request.

PoliteCrawler keeps each response that it fetched in a private store on the computer of its operator: a log of each request, and the bodies. The store stays until the operator deletes it. A stored copy is the record of what a page said, so a citation can name it. The crawler does not publish the stored copies.

  • By default, it uses a stored copy for 24 hours. In that time, a question about the page sends no request to your site. The operator can set a shorter or a longer age.
  • It reads Cache-Control and Expires. With the age auto, it uses a stored copy only while your server says that the copy is fresh. no-store and no-cache make a copy stale at once.
  • It keeps a response with no-store too. no-store changes when the crawler asks again, not what it keeps.

To block PoliteCrawler, add this group to your robots.txt:

User-agent: PoliteCrawler
Disallow: /

To slow it down, add a crawl delay in seconds:

User-agent: PoliteCrawler
Crawl-delay: 10

When the crawler fetches a page for an AI assistant, it also obeys your rules for Claude-User.

An application can use the software with a product token of its own. When its User-Agent links this page, it also obeys your rules for PoliteCrawler, and the stricter rules apply. An application with a bot page of its own can turn this off.

To refuse the use of your text as AI input, add a content signal. The crawler keeps such a page but holds back its text from an AI reader:

User-agent: *
Content-Signal: ai-input=no

Test your robots.txt with the same code that the crawler uses.

To refuse the crawlers that collect training data and let the AI assistants in, use this robots.txt.

An operator can ask the crawler for an archived copy of a page that your site refused. A page of a site that is down can get a copy too. The crawler then reads a copy from the Wayback Machine or Common Crawl, not from your site.

  • It is off by default. The operator turns it on for each fetch.
  • It respects your current robots.txt. By default, the crawler gives no archived copy of a page that your current robots.txt disallows for it. Only a stop, an error or a dead host gets a copy. An operator can change this on their own computer. An AI assistant cannot.
  • It respects your usage signals. When your robots.txt or the archived response says ai-input=no, the crawler holds back the text of the copy from an AI reader.
  • It is marked. A copy names its archive and its date. The crawler does not show it as a fresh fetch of your site.
  • It sends no request to your site. A stop for your site stays a stop.

An operator can give the crawler an Ed25519 key. The crawler then signs each request with HTTP Message Signatures, as the IETF Web Bot Auth draft tells. Each request then has the headers Signature-Agent, Signature-Input and Signature.

  • Signature-Agent names the key directory of the operator. Your server or your CDN can get the public key there and verify the request.
  • A signature identifies one operator, not each copy of polite-crawler. Each operator has their own key.
  • The User-Agent header stays the same, with a signature or without one.

On 2 November 2026, PoliteCrawler read the robots.txt file of each of the top 1,000 domains of the Tranco list. It sent one request for /robots.txt to each domain, with its redirects, and fetched no other page. It did not try again. Read the study.

To report a problem with the software, open an issue on GitHub.