cloudflare_waf_create_custom_rule
Create a custom WAF firewall rule for a Cloudflare zone using Cloudflare Rules Language expressions to block, challenge, or log specific traffic patterns.
Instructions
Add a new custom WAF firewall rule to a zone. Uses Cloudflare Rules Language for the expression.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | Zone ID (32-char hex) or zone name (e.g., 'example.com') | |
| expression | Yes | Cloudflare Rules Language expression (e.g., '(ip.src eq 192.0.2.1)') | |
| action | Yes | Action to take when the rule matches | |
| description | No | Optional human-readable description for the rule |