Templates / Score Cloudflare firewall bot threats and suggest manual block actions

Score Cloudflare firewall bot threats and suggest manual block actions

Ready for 3.0

by Cyberneticsplus · 9 views · created 2026-07-29 · SecOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 15 nodes and runs on a schedule (every 15 minutes) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.cloudflare.com over HTTP.

How it runs

Trigger: On a schedule (every 15 minutes) (plus 1 other trigger).

  1. Configuration (Code): runs custom JavaScript code
  2. Discover zones (HTTP Request): calls api.cloudflare.com (GET)
  3. Resolve zone list (Code): runs custom JavaScript code
  4. Build events query (Code): runs custom JavaScript code
  5. Fetch firewall events (HTTP Request): calls api.cloudflare.com (POST)
  6. Aggregate by IP (Code): runs custom JavaScript code
  7. Score offenders (Code): runs custom JavaScript code
  8. Route by recommendation (Switch): routes items into 2 branches
  9. Build block recommendations (Code): runs custom JavaScript code
  10. Format review queue (Code): runs custom JavaScript code

HTTP calls to: api.cloudflare.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow runs on a schedule (or manually) to read Cloudflare firewall events via the Cloudflare GraphQL API, aggregate activity by client IP, and compute deterministic bot-risk scores with evidence-based signals, then routes results into…

Excerpt from Cyberneticsplus's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.