SEO Tool Crawlers

AhrefsBot user agent

Operated by Ahrefs

Search indexProduct featureOfficial docs Your choice

AhrefsBot is Ahrefs' main crawler, which builds the backlink index behind Ahrefs and the Yep search engine.

What identifies AhrefsBot?

  • AhrefsBot is operated by Ahrefs and crawls web pages for a search engine index, and fetches pages to power a specific product feature.
  • The robots.txt token for AhrefsBot is AhrefsBot.
  • An SEO-tool crawl is distinct from Google or Bing indexing.
  • AhrefsBot robots.txt support: Yes.
  • Recommendation for Generative Engine Optimization (GEO): Your choice.

What is AhrefsBot?

AhrefsBot is one of the most active crawlers on the web after the big search engines. Its data shows your backlinks and pages to anyone using Ahrefs, including competitors.

Ahrefs documents both AhrefsBot and AhrefsSiteAudit on one page, with verification details.

Should you block AhrefsBot?

Choose whether to allow AhrefsBot based on its documented purpose, the service you use and the load it places on your website.

Effect on search rankingsAn SEO-tool crawl is distinct from Google or Bing indexing.
Effect on AI visibilityBlocking can limit the tool's future collection or your audits; previously collected data or links from other sources may remain.
Follows robots.txtYes
RecommendationYour choice

How to decide whether to allow AhrefsBot

Start with the operator documentation linked in this profile. Check the source.

  • Search index: If this search engine sends useful traffic, check that canonical pages are reachable. Use the engine’s supported removal controls if the objective is to remove an indexed URL.
  • Product feature: Identify the product feature in the source and test one URL it needs. Keep access limited to the site, paths or project that actually uses the feature.
  • Access policy: Check the paths and hosts covered by the published or reported policy. A robots.txt rule is not an access control.
  • What to check in logs: Look for AhrefsBot, then compare the paths, response codes and request volume before and after your change. Use the token as a starting point in logs. This profile does not list an IP range or reverse DNS method, so the user agent alone is insufficient to verify the operator.

How do you block or allow AhrefsBot?

Put the robots.txt rule in the file at the root of every domain and subdomain, for example https://example.com/robots.txt. The token AhrefsBot is matched case-insensitively.

robots.txt: block

# Block AhrefsBot
User-agent: AhrefsBot
Disallow: /

robots.txt: allow

# Allow AhrefsBot
User-agent: AhrefsBot
Allow: /

robots.txt: partial

# Keep AhrefsBot out of private areas only
User-agent: AhrefsBot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /

Nginx

# Nginx: return 403 to AhrefsBot
if ($http_user_agent ~* "(AhrefsBot)") {
    return 403;
}

Apache

# Apache .htaccess: return 403 to AhrefsBot
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (AhrefsBot) [NC]
RewriteRule .* - [F,L]

Cloudflare WAF

# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "AhrefsBot")

How can you verify AhrefsBot traffic?

No IP list or reverse-DNS method for AhrefsBot is linked in this profile. The header alone cannot authenticate the sender. Anyone can send the same string. Rate-limit unusual volume instead of trusting the name.

How do you find AhrefsBot in server logs?

Search the web server access log for the literal identifier. The command below counts candidate AhrefsBot requests per URL on Nginx or Apache.

grep -iF -- 'AhrefsBot' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.

AhrefsBot FAQ

AhrefsBot uses the robots.txt token "AhrefsBot". No full user-agent sample is recorded in this profile. Treat a token match as a candidate identity, not authentication.

Ahrefs states that AhrefsBot follows robots.txt rules. Check the documented scope and any exceptions on this profile.

An SEO-tool crawl is distinct from Google or Bing indexing. Blocking can limit the tool's future collection or your audits; previously collected data or links from other sources may remain.

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: AhrefsBot" followed by "Disallow: /". The token is case-insensitive. Operator fetch schedules and caching policy determine when a change is applied; check subsequent requests.

Not reliably. Ahrefs verification is not established by the links recorded for AhrefsBot. Anyone can send the same user-agent string; investigate source addresses and request behavior before trusting it.

Search your server access log for "AhrefsBot", for example with: grep -i "AhrefsBot" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.

Sources: Ahrefs crawler documentation. Content updated by Justin Hà.

See which of these bots actually reach your website

The AI Log File Analyzer by Justin Hà counts visits from GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in your server log, for free. The GEO Technical Package sets up robots.txt, llms.txt and crawler access for AI search.

Zalo logo Chat Zalo WhatsApp logo Chat WhatsApp