Cloudflare Docs
WAF
Visit WAF on GitHub
Set theme to dark (⇧+D)

Deploy Managed Rulesets via API

Use the Rulesets API to deploy Managed Rulesets at the account level or at the zone level.

Deploy WAF Managed Rulesets to the http_request_firewall_managed phase. Other Managed Rulesets, like DDoS Managed Rulesets, must be deployed to a different phase. Check the specific Managed Ruleset documentation for details.

You can define overrides to customize the behavior of the rules included in a Managed Ruleset.

Note: The zone-level http_request_firewall_managed phase can have at most three execute rules deploying Managed Rulesets, one for each available Managed Ruleset.

To learn more about deploying Managed Rulesets and configuring overrides using the Rulesets API, refer to Work with Managed Rulesets.