SEO

AhrefsBot

Ahrefs' crawler, which builds the link and page index behind its SEO tools.

Operator
Ahrefs
Category
SEO
Label
Unknown
identified by its self-description only

Documentation from Ahrefs

Allow or block AhrefsBot

AhrefsBot is identified by its self-description only, so it is reported as a bad bot. This rule denies it by name. Switch the action to allow if you trust it.

{
  "name": "Deny AhrefsBot",
  "enabled": true,
  "match": "all",
  "conditions": [
    {
      "field": "botId",
      "op": "eq",
      "value": "ahrefsbot"
    }
  ],
  "action": "deny"
}

Add it in the console rule editor, or start from the rule templates.

Check a request from your server

Send the request your server received to the bot check with your secret key. The answer says whether the visitor is a good bot, a bad bot or not detected, and which entry it matched, for example AhrefsBot.

curl -X POST https://api.fpchecker.com/v1/bot-check \
  -H 'X-Secret-Key: sk_...' \
  -H 'Content-Type: application/json' \
  -d '{"method":"GET","url":"https://yoursite.com/pricing","ip":"203.0.113.7","headers":{"user-agent":"..."}}'

Read the integration guide

Some entries draw on ai.robots.txt (MIT licence). ai.robots.txt on GitHub