Skip to content

crawl/robots-txt: report Crawl-delay (Google ignores it, Bing obeys it) #931

Closed

Description

@nc9

Problem

Crawl-delay in robots.txt rarely does what site owners expect:

  • Google ignores it.
  • Bing and Yandex obey it, so a value like Crawl-delay: 10 caps Bing at roughly one URL every 10 seconds (about 8,600 a day). That slows discovery of new and updated pages.

It's usually left over from an old hosting template or a security plugin. crawl/robots-txt checks for a Sitemap: line and dangerous Disallow rules, but not Crawl-delay.

Proposal

Extend crawl/robots-txt:

  • Info: a Crawl-delay directive in any group that applies to a major search engine (*, bingbot, msnbot, yandex, googlebot), showing the value and the user-agent group.
  • Warn: a delay of 10 seconds or more on * or bingbot. Say that Google ignores it and Bing obeys it, with the rough per-day URL cap the value implies.
  • No finding: a Crawl-delay limited to non-search bots, such as a named scraper's group.

Acceptance Criteria

  • Fixture: User-agent: * with Crawl-delay: 10 produces a warning that names the value and states the per-day cap
  • Fixture: Crawl-delay: 2 under User-agent: * produces an info finding
  • Fixture: Crawl-delay only under User-agent: AhrefsBot produces no finding
  • Fixture: a robots.txt without Crawl-delay produces no new finding
  • The crawl/robots-txt docs page covers the new check

Activity

  1. added
    enhancement
    size: XS
    rules
    on Oct 18, 2026
  2. WilliamK112 commented on Oct 21, 2026

    @WilliamK112
    Contributor

    I can take this. I’ll extend the existing crawl/robots-txt parser to report applicable Crawl-delay directives at the requested info/warn thresholds, add the four focused fixtures from the acceptance criteria, and update the rule documentation. I’ll keep non-search-bot groups silent and avoid any network behavior changes.

  3. added a commit that references this issue on Oct 24, 2026
    2ef3825
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: XS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions