> For the complete documentation index, see [llms.txt](https://docs.tumbler.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tumbler.app/ru/uluchsheniya-posle-pervogo-zapuska/fetcher-restrictions.md).

# Ограничения fetcher-клиента

## Для кого

Провайдеры, которые хотят корректно обслуживать запросы fetcher‑агентов и защитить инфраструктуру.

## Что можно сделать

* Настроить allow‑list по IP/ASN или User-Agent.
* Ограничить скорость запросов от fetcher без блокировки клиентов.
* Сообщить о требованиях к TLS и ответам при ошибках.

## Примеры

* User-Agent: `tumbler-backend-fetcher/1.0`
* Rate limit: до 1 запроса в секунду на подписку.
* Ответ `429` с Retry-After 60 при превышении.

## См. также

* [operations/reliability-and-timeouts.md](/ru/uluchsheniya-posle-pervogo-zapuska/reliability-and-timeouts.md)
* [operations/caching-and-304.md](/ru/uluchsheniya-posle-pervogo-zapuska/caching-and-304.md)
* [operations/fetcher-http-contract.md](/ru/kontrakt-podpiski/fetcher-http-contract.md)
* [security/url-protection-and-crypt3.md](/ru/nachat/url-protection-and-crypt3.md)

## Правила

* Не блокируйте fetcher по GeoIP: используйте явный allow‑list IP или CIDR, согласованный заранее.
* Поддерживайте валидный TLS, современные шифры и SNI.
* Возвращайте точные коды ошибок: 429 для лимитов, 403 для отказа доступа, 5xx только при реальных сбоях.
* Не требуйте stateful cookies; предпочтительнее stateless токены или подписи.

## Rate limiting

* Настройте консервативные лимиты: 1–2 rps достаточно для большинства провайдеров.
* Указывайте `Retry-After` для предсказуемого поведения клиентов.
* При срабатывании лимита не меняйте тело ответа (можно вернуть JSON с полем `error` и `retry_after`).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tumbler.app/ru/uluchsheniya-posle-pervogo-zapuska/fetcher-restrictions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
