Skip to the content
Start free

AhrefsBot

AhrefsBot is the web crawler run by the SEO software company Ahrefs, which fetches pages and follows links to build the link and page database behind its tools and its Yep search engine. It is not a Google crawler, and it is not one of the bots AI companies use. It obeys robots.txt, so you decide whether it may visit.

What is AhrefsBot? #

A bot is software that requests pages on its own. Each time it fetches a page, it records the links on it. Those records become the backlink and referring domain data that Ahrefs customers search. The company’s own robot page says AhrefsBot powers the database for Ahrefs and the Yep search engine.

Ahrefs runs a second bot, AhrefsSiteAudit. That one crawls a site only when an Ahrefs user starts a site audit, to look for technical and on-page problems.

How do I recognise it? #

Every request carries a user agent string. The robot page gives these:

Bot User agent token Job
AhrefsBot Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) Builds the link and page database
AhrefsSiteAudit Mozilla/5.0 (compatible; AhrefsSiteAudit/6.1; +http://ahrefs.com/robot/site-audit) Runs audits a user asks for, with a desktop and a mobile version

A name alone proves nothing, because anyone can copy it. The robot page says the reverse DNS of a real AhrefsBot IP address always ends in ahrefs.com or ahrefs.net, and Ahrefs publishes its crawler IP ranges. A reverse DNS bot check plus a forward lookup tells a real visit from a fake one.

AhrefsBot has no effect on how Google ranks you. Google ranks pages from what Googlebot sees. What AhrefsBot changes is what other people see about you in a third-party tool. If it is blocked, your site looks thinner there: fewer pages, fewer outgoing links. Rivals using that tool for competitor analysis or link outreach may then miss you. Some owners want that. Others want to be visible.

There is also a cost side. Every bot request uses server time. On a small site, heavy crawling by several SEO bots can add up, which is why crawl budget and rate limiting matter.

Why does it matter for AI answers? #

Ahrefs describes the bot’s job as feeding its own link database and Yep. It is a separate bot from the ones AI companies run, so blocking it does not stop ChatGPT, Claude or Gemini reading your site. Those companies use their own bots, such as GPTBot, ClaudeBot and Google-Extended. Keep the two lists apart. An owner who blocks “all bots except Google” to stop AI training often blocks useful search and answer bots at the same time. See training crawler and our bot directory.

How does it work? #

  1. It picks addresses from its queue, often found as links on other sites.
  2. It reads your robots.txt. The robot page says both Ahrefs bots strictly follow allow and disallow rules.
  3. It fetches the page. The bots can render JavaScript, and may then request several files at once.
  4. It stores the page and its links, then queues new addresses.
  5. If your server replies with 4xx or 5xx status codes, the robot page says the bots slow down by themselves.

How do I slow it down or block it? #

Use robots.txt. To block the whole site:

User-agent: AhrefsBot
Disallow: /

To slow it instead, Ahrefs says both bots obey a Crawl-Delay line in seconds:

User-agent: AhrefsBot
Crawl-Delay: 10

Two notes. Ahrefs says the delay is kept for HTML pages but not for the files fetched while rendering. And Google’s robots.txt guide says Google ignores crawl-delay, so the line affects AhrefsBot, not Googlebot. Ahrefs also warns that changes take a while to be picked up, and that a malformed file is ignored.

The rules work because the bot chooses to follow them. The Robots Exclusion Protocol, RFC 9309 (September 2022), says the rules are not a form of access authorisation. To truly stop a bot, use your firewall; see web application firewall.

Common mistakes #

  • Blocking it to “protect rankings”. It has no say in Google rankings.
  • Blocking it to stop AI training. It is the wrong bot for that job. Use the AI companies’ own tokens.
  • Trusting the name. Fake bots copy the AhrefsBot string. Check reverse DNS.
  • Wrong group. Google’s guide says a crawler uses the most specific matching user-agent group and ignores the rest. A User-agent: * rule does not apply to AhrefsBot if it also has its own group.
  • Blocking AhrefsSiteAudit by accident. If your own team uses Ahrefs audits, that bot needs access too.

A worked example #

A shop owner sees 40,000 requests a day in the server logs naming AhrefsBot.

Step Finding Action
Reverse DNS on the top 10 IPs 6 end in ahrefs.com or ahrefs.net, 4 belong to an unrelated network The 4 are fakes
Status codes for real visits Mostly 200, some 404 from old links Fix or redirect the old links
Decision Wants to stay visible in link tools Add Crawl-Delay: 10 for AhrefsBot
Fakes Ignore robots.txt Block those IPs at the firewall

How to check it #

  1. Before uploading a new file, run it past our Robots.txt Checker.
  2. Look up a visiting address with our DNS lookup and IP lookup tools.
  3. Check the status codes bots get with the HTTP Header Checker, and fix dead links with the Broken Link Checker.
  4. For AI crawlers rather than SEO bots, use Verify AI Bot.
  5. Our AI Crawler Log Analyzer will sort log lines by bot. In URSY Pro, the fake bot detector, bot cost and crawl budget by bot reports do it for every day.

If you use Ahrefs exports already, our backlinks from your exports feature reads them. We compare tools on our Ahrefs comparison page.

Questions #

Is AhrefsBot safe? #

The real one follows robots.txt and slows down on errors. Fakes using its name may not, which is why you verify.

Not fully. It stops AhrefsBot reading your pages. Links to you found on other sites can still be recorded.

Will it show in Google Analytics? #

Usually not, as most bots do not run analytics tags. It shows in server logs. See bot traffic in analytics.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: AhrefsBot. URSY. Updated 24 November 2026. https://ursy.com/wiki/ahrefsbot/ · Section links

Tools for this

All 871 wiki entries, A to Z →