How to block ClaudeBot with firewall rules?

My server is heavy abused with ClaudeBot. Could you plese help how to block it with cloudflare firewall rules? It comes from cloudflare adreses.

1 Like

To block abusive traffic from ClaudeBot originating from Cloudflare addresses using Cloudflare firewall rules, you can create a rule to block the specific user-agent associated with ClaudeBot. Here’s an example of how you can create a firewall rule to block traffic from ClaudeBot:

  1. Log in to your Cloudflare dashboard.
  2. Go to the Firewall section.
  3. Create a new custom firewall rule.
  4. Set the rule to match the user-agent header containing “ClaudeBot.”
  5. Set the action to “Block” for this rule.

By creating this rule, you can block traffic from ClaudeBot while allowing legitimate traffic to pass through.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.