Create Firewall Rule
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Create Firewall Rule
with Cloudflare
Create a filter, attach a firewall rule action, and list the rules.
- Create a reusable filter from the supplied match expression.
- Create a firewall rule that applies the supplied action when the new filter matches.
- List the zone's firewall rules to confirm the new rule is present.
What you'll need to have ready
- zoneId: The unique identifier of the zone.
- expression: The Cloudflare filter expression (e.g. (ip.src eq 203.0.113.1)).
- action: The firewall action to apply (e.g. block, challenge, allow).
- description: A human-readable description for the firewall rule.
For your developer
Arazzo workflow cloudflare:create-firewall-rule, 3 operations: filters-create-filters → firewall-rules-create-firewall-rules → firewall-rules-list-firewall-rules. Specs on APIs.io.