DR Meter

AhrefsBot IP Checker

Paste an IP address to verify whether it really belongs to AhrefsBot — using Ahrefs' official published crawler ranges.

Why verify AhrefsBot?

Spammers often fake the AhrefsBot user-agent to disguise scrapers. This checker confirms a request is genuinely from Ahrefs' crawler before you allow or block it — matching the IP against Ahrefs' official ranges and cross-checking reverse and forward DNS.

The AhrefsBot user agent

Genuine AhrefsBot requests carry the user-agent string below. But a user-agent is trivial to fake, so the string alone proves nothing — you have to verify the IP address behind it.

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

How to verify a real AhrefsBot IP

Three checks confirm a request is genuinely from AhrefsBot. This tool runs all three for you:

  1. 1

    Check the official IP ranges

    Confirm the IP falls inside one of Ahrefs' published crawler ranges. Ahrefs publishes the full list, so range membership is authoritative.

  2. 2

    Reverse-DNS lookup

    Look up the IP's PTR record. For a genuine crawler the hostname must end in ahrefs.com or ahrefs.net.

  3. 3

    Forward-DNS confirmation

    Resolve that hostname back to an IP address. It must match the original IP — this defeats forged PTR records. If any check fails, the request is spoofed.

Official AhrefsBot IP ranges

Fetched live from Ahrefs' official crawler-ranges endpoint. Add these to your allowlist to let AhrefsBot crawl, or use the firewall generator to block it.

5.39.1.224/275.39.109.160/2715.235.27.0/2415.235.96.0/2415.235.98.0/2437.59.204.128/2751.68.247.192/2751.75.236.128/2751.81.103.240/2851.81.104.32/2851.81.105.16/2851.81.110.16/2851.81.110.48/2851.81.110.80/2851.81.111.0/2851.81.111.64/2851.81.111.112/2851.81.111.128/2851.81.163.16/2851.81.163.48/2851.81.163.64/2851.81.164.144/2851.81.164.192/2851.81.165.80/2851.81.165.208/2851.81.169.112/2851.81.169.192/2851.81.170.0/2851.89.38.128/2851.89.39.48/2851.89.59.32/2851.89.69.32/2851.89.69.96/2851.89.71.80/2851.89.71.144/2851.89.72.0/2851.89.74.192/2851.89.83.48/2851.89.129.0/2451.161.37.0/2451.161.65.0/2451.195.183.0/2451.195.215.0/2451.195.244.0/2451.222.95.0/2451.222.168.0/2451.222.253.0/2654.36.148.0/2354.37.118.64/2754.38.147.0/2454.39.0.0/2454.39.6.0/2454.39.89.0/2454.39.136.0/2454.39.203.0/2454.39.210.0/2492.222.104.192/2792.222.108.96/2794.23.188.192/27142.44.220.0/24142.44.225.0/24142.44.228.0/24142.44.233.0/24148.113.128.0/24148.113.130.0/24167.114.139.0/24168.100.149.0/24176.31.139.0/27198.244.168.0/24198.244.183.0/24198.244.186.193/32198.244.186.194/31198.244.186.196/30198.244.186.200/31198.244.186.202/32198.244.226.0/24198.244.240.0/24198.244.242.0/24202.8.40.0/22202.94.84.110/31202.94.84.112/31

How to block or allow AhrefsBot

Once you have verified a real AhrefsBot IP, you can allow it through your firewall or block it. Our generator builds ready-to-paste rules for robots.txt, .htaccess, Nginx and Cloudflare from the live ranges.

Open the firewall rule generator

AhrefsBot vs other SEO crawlers

AhrefsBot is one of several backlink and SEO crawlers you will see in your logs, alongside SemrushBot, MJ12bot (Majestic), DotBot (Moz) and rogerbot. Each has its own published user-agent and, in most cases, its own IP ranges. The same verification logic applies to all of them: never trust the user-agent alone — confirm the IP against the vendor's official ranges and reverse/forward DNS before you decide to allow or block.

What a spoofed AhrefsBot looks like

A scraper can set its user-agent to AhrefsBot in one line of code, hoping you will wave it through. The give-away is the IP: a spoofed request comes from an address that is not in Ahrefs' published ranges and whose reverse-DNS hostname does not end in ahrefs.com or ahrefs.net (or does not resolve back to the same IP). If this checker returns Not an AhrefsBot IP for a request that claimed to be AhrefsBot, it is almost certainly a spoof — block it.

How often do AhrefsBot IP ranges change?

Ahrefs updates its published crawler ranges from time to time as it adds infrastructure, so a hard-coded allowlist can go stale. This tool reads the ranges live from Ahrefs' official endpoint on every check, and the firewall generator builds rules from the same live list — so your allow and block rules stay accurate as long as you regenerate them periodically.

How many top websites block AhrefsBot? →

Frequently asked questions

Is checking the user-agent enough to identify AhrefsBot?

No. The AhrefsBot user-agent is trivial to fake. Only verifying the IP against Ahrefs' official ranges and reverse/forward DNS reliably confirms a genuine crawler.

Why does forward-DNS matter?

A spammer can forge a reverse-DNS (PTR) record to look like ahrefs.com. Resolving that hostname forward and checking it returns the same IP defeats the forgery.

Does robots.txt stop a fake AhrefsBot?

No. robots.txt only asks well-behaved bots to stay out. A spoofed crawler that ignores your rules must be blocked by IP or user-agent at the firewall.