quickest way to block ahrefs bot?

Spent most of this week trying to block ahrefs bot. Small team, so whatever it's has to be maintainable. What would you try next?
1

Leave A Reply

Log in to post an answer.

1 Answer

mayur_seo Oct 21, 2026
ruth_ppc
robots.txt: User-agent: AhrefsBot Disallow: / they say they respect it. if you're on cloudflare you can also block the user agent with a firewall rule, which works even against anything that ignores robots. their site audit crawler uses a separate user agent if you want that gone as well.