База знаний

Restrict an unwanted crawler

Эта статья есть на вашем языке: Как ограничить нежелательный краулер

For a known bot group, choose Блокировать (Block) in bot management. If the crawler has no group, target its observed requests with a rule. The current list has no separately verified AI crawler groups.

You need Правила (Rules), spare rule capacity, and the User-Agent and Адрес (Path) fields. Replace example.com with your domain. Check site logs first to identify the requested paths and the crawler's reported User-Agent.

Target one crawler and section

  1. Open WebShield → example.com → Правила → Добавить правило (Rules → Add rule).
  2. Name it Crawler: catalog and select Блокировать (Block).
  3. In the first group, set User-Agent → Содержит → ExampleCrawler (contains). Replace ExampleCrawler with a distinctive string from actual requests.
  4. Click + Добавить условие (Add condition) in that group. Set Адрес → Начинается с → /catalog/ (Path starts with). Both conditions must match.
  5. Review Как работает правило (How the rule works), save, and allow synchronization. Check rule order.

Inspect new requests in your logs. Requests with that User-Agent to /catalog/ should receive 403; other sections and normal browsers should remain available. The simulator cannot compare User-Agent and can report insufficient data.

Clients supply their own User-Agent and can change it. This condition does not verify ownership by an AI service or stop a crawler using another identity. Avoid blocking a general string such as bot, which can match useful crawlers.

If you need to reduce load rather than deny access, use a frequency limit for the affected path. Limits count requests per IP; distributed traffic from different addresses also needs controls in the application.

Статья была полезна?