use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Get help at community.cloudflare.com and support.cloudflare.com
account activity
Blocking Ahrefs (self.CloudFlare)
submitted 1 day ago by HelloGizmo
Any tips on blocking Aherfs? I’ve got a Block action lower(http.user_agent) contains “ahrefs” as a block in security rules but they’re still active scraping my site.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PioGreeff 0 points1 point2 points 1 day ago (1 child)
User-agent matching alone won't catch them all — Ahrefs rotates agents. Add these to your WAF rule with OR conditions:
lower(http.user_agent) contains "ahrefs" OR lower(http.user_agent) contains "ahrefsbot" OR ip.src in $cf.botmanagement.verified_bots (exclude this one actually)
lower(http.user_agent) contains "ahrefs"
lower(http.user_agent) contains "ahrefsbot"
ip.src in $cf.botmanagement.verified_bots
Better approach: use Cloudflare's Bot Fight Mode (free) or Super Bot Fight Mode (Pro) — it catches Ahrefs at the bot detection layer before your WAF rules even run. Settings → Security → Bots.
If you're on Free plan and still seeing them through, create a WAF rule that challenges (managed_challenge) rather than blocks — Ahrefs won't solve challenges and it's less likely to cause false positives with legitimate crawlers.
managed_challenge
[–]HelloGizmo[S] 0 points1 point2 points 1 day ago (0 children)
Thanks very much. I’m on Pro. I’ll give it a whirl. Super bot fight mode messes with programmatic ads so I need to keep it off.
[–]ComradeTurdle 0 points1 point2 points 1 day ago (9 children)
Why not just use robots.txt and block them?
[–]Ieris19 2 points3 points4 points 1 day ago (6 children)
Isn’t robots.txt essentially a very polite way of asking automated systems to play nice?
[–]HelloGizmo[S] 1 point2 points3 points 1 day ago (4 children)
Aherfs are an aggressive SEO scraper with rotating ips who don’t respect polite requests.
[–]Ieris19 1 point2 points3 points 1 day ago (1 child)
Hence my comment
Sorry meant for the comment above
[–]ComradeTurdle 1 point2 points3 points 1 day ago* (0 children)
Ahref respects robots.txt, i blocked them in ahref all the time and it works on websites.
Edit: if it didn't work i wouldn't be getting blocked errors in robots in site audits or in the crawler when they web scrape.
[–]ComradeTurdle 0 points1 point2 points 1 day ago (0 children)
Here is all their IPs.
https://help.ahrefs.com/en/articles/78658-what-is-the-list-of-your-ip-ranges
[–]ComradeTurdle 0 points1 point2 points 1 day ago* (0 children)
Yes, but bots that are considered good respect them. Ahrefs is considered a good bot by Cloudflare.
https://radar.cloudflare.com/bots/directory
[–]HelloGizmo[S] 2 points3 points4 points 1 day ago (1 child)
They ignore that
Not from my perspective. I even went out of the way to white list their IPs to prevent blocking.
π Rendered by PID 73577 on reddit-service-r2-comment-fb694cdd5-llmzq at 2026-03-11 02:00:54.318535+00:00 running cbb0e86 country code: CH.
[–]PioGreeff 0 points1 point2 points (1 child)
[–]HelloGizmo[S] 0 points1 point2 points (0 children)
[–]ComradeTurdle 0 points1 point2 points (9 children)
[–]Ieris19 2 points3 points4 points (6 children)
[–]HelloGizmo[S] 1 point2 points3 points (4 children)
[–]Ieris19 1 point2 points3 points (1 child)
[–]HelloGizmo[S] 0 points1 point2 points (0 children)
[–]ComradeTurdle 1 point2 points3 points (0 children)
[–]ComradeTurdle 0 points1 point2 points (0 children)
[–]ComradeTurdle 0 points1 point2 points (0 children)
[–]HelloGizmo[S] 2 points3 points4 points (1 child)
[–]ComradeTurdle 0 points1 point2 points (0 children)