Sign inGet started
Tracking

AhrefsBot

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

AhrefsBot crawls for Ahrefs' link index and Yep search, and AhrefsSiteAudit runs site audits. Their user agents, robots.txt, crawl delay and verification.

Updated

AhrefsBot is Ahrefs' crawler: it builds the database behind Ahrefs' SEO tools and behind Yep, Ahrefs' search engine. Its sibling, AhrefsSiteAudit, crawls a site when someone runs an Ahrefs Site Audit on it. Ahrefs says both render pages, JavaScript included, so they can run your analytics tag.

We checked Ahrefs' robot page on November 30, 2026.

What does AhrefsBot's user agent look like?

Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsSiteAudit/6.1; +http://ahrefs.com/robot/site-audit)

AhrefsSiteAudit also sends a mobile Chrome string ending in (compatible; AhrefsSiteAudit/6.1; +http://ahrefs.com/robot/site-audit).

Does AhrefsBot follow robots.txt?

Yes, and Crawl-delay too, in seconds. Ahrefs notes it can't keep the delay while rendering JavaScript, when a page's files may be fetched at once. AhrefsSiteAudit follows both by default and fetches at most 30 pages a minute; only a verified owner of the site can make it ignore that site's robots.txt or go faster.

User-agent: AhrefsBot
Crawl-delay: 10

User-agent: AhrefsSiteAudit
Disallow: /

Answering with a 4xx or 5xx error also makes the bots back off for a while.

How do you know it's really Ahrefs?

The address of a real Ahrefs bot always resolves to a name ending in ahrefs.com or ahrefs.net. Ahrefs also publishes its ranges at https://api.ahrefs.com/v3/public/crawler-ip-ranges and single addresses at https://api.ahrefs.com/v3/public/crawler-ips.

Does it show up in your analytics?

Not as a visit. Most crawlers read your HTML and never run your analytics tag, so tag-based tools such as Google Analytics 4 don't see them at all. The ones that render pages in a browser can run the tag. nextanalytica recognizes them by their user agent when the hit reaches its edge, stores the hit apart under the bot's name and leaves it out of every report. Your agent still sees how many hits from bots arrived and weren't counted as visits. See Bot traffic.

This command adds nextanalytica to Claude Code:

claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp

Next steps

Related
  • What the tag collects: Page views, clicks, forms, scroll, errors and page speed, counted without code. What never leaves the page.
  • Add the tag: Put one script line in the head of every page. Where it goes in plain HTML, site builders and each framework.
  • Next.js analytics: Add analytics to Next.js with @nextanalytica/tag: install, events, consent and AI crawlers, counted without cookies until a yes and read by your agent.
  • Next.js custom events: Send custom events from a Next.js app with @nextanalytica/tag: sign-ups, demo requests and conversions your agent reads by channel.
  • Next.js cookie consent: Wire a cookie banner in Next.js to analytics: count without cookies until the answer, and pass the saved answer on every page.
  • Next.js revenue tracking: Record orders in a Next.js app, from the browser or from your server, so revenue ties to the visit, channel and campaign it came from.
Still have questions?
Was this page useful?