SEO tool crawler
What is AhrefsBot?
At a glance
- Operator
- Ahrefs
- Kind
- SEO tool crawler
- robots.txt token
AhrefsBot
Block it
robots.txt
User-agent: AhrefsBot
Disallow: /- Follows robots.txt
- Yes: Ahrefs says AhrefsBot obeys robots.txt allow and disallow rules and Crawl-delay.
- Verify a real hit
- Reverse DNS on the IP should end in ahrefs.com or ahrefs.net, or match the IP against the ranges Ahrefs publishes. Reference
- Operator’s page
- ahrefs.com/
robot
User agent
Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)AhrefsBot is the crawler behind Ahrefs, the SEO tool, and behind Yep, a search engine Ahrefs runs. It maps pages and the links between them, which is where Ahrefs’ backlink data comes from.
Checked against Ahrefs’s own documentation on
Allow or block AhrefsBot in robots.txt
Add the group to the robots.txt at the root of each host. A group that names the bot replaces your * rules for it, so repeat any paths you still want kept out.
Allow
robots.txt
User-agent: AhrefsBot
Allow: /To block it instead, copy the lines under Block it, in At a glance.
What blocking or allowing it changes
Blocking AhrefsBot hides your pages and outgoing links from Ahrefs and from Yep. It does not change Google or Bing, but it does mean the links you give other sites stop showing in Ahrefs’ data.
To slow it instead, add Crawl-delay: 10 (seconds) to its group. Ahrefs also runs AhrefsSiteAudit, which audits sites for its users under its own token and which verified owners can tell to ignore robots.txt on their own site.
How CrispStats shows AhrefsBot
AhrefsBot is not on CrispStats’s AI crawler list, so its hits are not reported. If it ever runs the analytics script, the collector recognises the self-identified bot and drops the event before anything is stored, so it never shows up as a visitor.
Crawler questions. Straight answers.
What people ask about this crawler.
No. It only affects what Ahrefs and Yep know about your site.
Yes. Ahrefs says it obeys Crawl-delay for HTML pages, though it is not strictly enforced while rendering JavaScript.
Run a reverse DNS lookup on the IP: a real AhrefsBot resolves to a name ending in ahrefs.com or ahrefs.net. Ahrefs also publishes its crawler IP ranges, and Cloudflare lists it as a verified bot.
Not answered here? Write to hello@crispstats.com
Sources
Ahrefs pages we read, checked
- Ahrefsahrefs.com
Similar bots
SemrushBot
SemrushBot is the crawler behind Semrush’s backlink data: it builds the web graph of links the SEO tool reports.SEO tool crawlerfacebookexternalhit
facebookexternalhit is the fetcher that builds link previews.Link preview fetcherLinkedInBot
LinkedInBot is the name LinkedIn uses for its fetcher in robots.txt.Link preview fetcherSlackbot
Slackbot is how Slack unfurls links: when someone posts your URL in a Slack channel, it fetches as little of the page as it can to read the oEmbed, Twitter Card and Open Graph tags, then the image they point to.Link preview fetcher
Read more
Guides
- Should you block AI crawlers? Training, search and user bots compared
Blocking a training bot keeps you out of future models; blocking a search or user bot keeps you out of answers.
Tools and terms
Your traffic, crisp and clear
One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.