Bots by company

Ahrefs bots and crawlers

Ahrefs runs an SEO platform with one of the largest backlink indexes, plus the Yep search engine.

Ahrefs bots at a glance

  • Ahrefs runs 2 bots listed in this directory.
  • They belong to: SEO Tool Crawlers.
  • Each Ahrefs bot has its own robots.txt token, so each purpose can be allowed or blocked separately.
  • Website: ahrefs.com

Every Ahrefs bot

BotGroupPurposerobots.txtFor GEO
AhrefsBotSEO Tool CrawlersSearch indexProduct featureOfficial docsYesYour choice
AhrefsSiteAuditSEO Tool CrawlersProduct featureOfficial docsYesAllow

Block or allow all Ahrefs bots

The rules below name every Ahrefs token in this directory. To block training but keep AI search, delete the search and assistant tokens from the block rule.

robots.txt: block

# Block all Ahrefs bots
User-agent: AhrefsBot
User-agent: AhrefsSiteAudit
Disallow: /

robots.txt: allow

# Allow all Ahrefs bots
User-agent: AhrefsBot
User-agent: AhrefsSiteAudit
Allow: /

robots.txt: partial

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

Nginx

# Nginx: return 403 to all Ahrefs bots
if ($http_user_agent ~* "(AhrefsBot|AhrefsSiteAudit)") {
    return 403;
}

Apache

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

Cloudflare WAF

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

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