A

AhrefsBot

seo Ahrefs(Bot|SiteAudit)

Ahrefs SEO tool web crawler for link analysis

About this crawler

AhrefsBot is a web crawler identified by the regular-expression pattern Ahrefs(Bot|SiteAudit) in the User-Agent request header. It is categorised as seo. Use the regex above to detect, log, allow, or block AhrefsBot traffic in your web server, CDN edge rules, or robots.txt.

Block-rate · top 25k sites

5.1%
latest snapshot
2026-06-04
matched key: AhrefsBot
2026-05-012026-06-046.7%

Technical details

Name
AhrefsBot
Pattern
Ahrefs(Bot|SiteAudit)
Tags
seo
Added
2011/08/28
rDNS suffixes
.ahrefs.com, .ahrefs.net
Instances
7 known sample(s)

rDNS verification (FCrDNS)

Verify a request is genuinely AhrefsBot with forward-confirmed reverse DNS: the client IP's PTR record must end in one of the suffixes below and a forward A/AAAA lookup of that hostname must return the same IP. UA strings alone are spoofable; FCrDNS is not.

Sample User-Agent strings

Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsSiteAudit/6.1; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsBot/5.2; News; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsBot/5.2; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsSiteAudit/5.2; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsBot/6.1; News; +http://ahrefs.com/robot/)
Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)

Block this crawler

robots.txt — disallow AhrefsBot:

User-agent: AhrefsBot Disallow: /

Apache .htaccess — return 403:

RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Ahrefs(Bot|SiteAudit) [NC] RewriteRule .* - [F,L]

Nginx — return 403 inside a server block:

if ($http_user_agent ~* "Ahrefs(Bot|SiteAudit)") { return 403; }
← back to all crawlers