WebmasterID logoWebmasterID
Robots & crawl control

How to block AhrefsBot in robots.txt

AhrefsBot is the crawler Ahrefs uses to build its backlink and SEO index. This page gives the robots.txt rule to disallow it and notes that Ahrefs documents support for both robots.txt rules and the crawl-delay directive, so you can slow rather than fully block it.

Verified against primary sources

What AhrefsBot is

AhrefsBot crawls the web to build the link and content index that powers the Ahrefs toolset. It is a third-party SEO crawler — it does not influence Google or Bing search results, and it is not an AI training crawler. Some operators block it to reduce crawl load from tools they do not use.

The rule and crawl-delay option

Ahrefs documents that AhrefsBot honours robots.txt. To disallow it site-wide:

User-agent: AhrefsBot Disallow: /

Ahrefs also documents support for the crawl-delay directive, so if you want to slow rather than block it you can specify a delay in its group:

User-agent: AhrefsBot Crawl-delay: 10

Use one approach or the other depending on whether you want AhrefsBot gone or merely gentler.

How it appears in analytics and logs

A request with the AhrefsBot token is Ahrefs building its index. It is third-party SEO crawling, not a search engine and not a human visit; treat sustained activity as crawl load to manage, not audience.

Diagnostic use case

Disallow AhrefsBot, or slow it with crawl-delay, to reduce SEO-tool crawl load without affecting search or AI crawlers.

What WebmasterID can help detect

WebmasterID classifies AhrefsBot as an SEO crawler separate from human traffic, so you can confirm a block or crawl-delay change took effect for the compliant crawler.

Common mistakes

Privacy and accuracy notes

Managing AhrefsBot is a crawl-load and policy choice expressed in a public file. It involves no visitor data.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.