Allow or block AhrefsBot
User-agent: AhrefsBot
Disallow: /Asks AhrefsBot not to crawl any page. Well-behaved crawlers stop; it does not stop anyone who ignores robots.txt.
User-agent: AhrefsBot
Allow: /Lets AhrefsBot crawl everything. You only need this if a broader rule would otherwise block it.
Should you block it?
AhrefsBot is not an AI training or AI search crawler. Block it only if you don't want Ahrefs's product to read your pages.