Skip to content
Cloudflare Docs

Work with custom rulesets

Use the following workflow to deploy a custom ruleset:

  1. Create a custom ruleset, optionally providing a list of rules to include in the custom ruleset.
  2. (Optional) Add rules to your custom ruleset.
  3. Deploy the custom ruleset by adding an execute rule to a phase entry point ruleset. If you skip this step, the rules of the custom ruleset will not run.

Currently, custom rulesets are only supported by the Cloudflare WAF, both at the account and the zone level.

Change the behavior of a custom ruleset

To modify custom ruleset behavior, Cloudflare recommends creating a new custom ruleset or editing the custom ruleset instead of using overrides.