Work with custom rulesets
Use the following workflow to deploy a custom ruleset:
- Create a custom ruleset, optionally providing a list of rules to include in the custom ruleset.
- (Optional) Add rules to your custom ruleset.
- Deploy the custom ruleset by adding an
executerule 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.
To modify custom ruleset behavior, Cloudflare recommends creating a new custom ruleset or editing the custom ruleset instead of using overrides.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2026 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-