Skip to main content
Glama

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
NameRequiredDescriptionDefault
zone_idYesZone ID (32-char hex) or zone name (e.g., 'example.com')
expressionYesCloudflare Rules Language expression (e.g., '(ip.src eq 192.0.2.1)')
actionYesAction to take when the rule matches
descriptionNoOptional human-readable description for the rule

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itunified-io/mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server