Manage rules via the APIs
Cloudflare offers APIs that work together to achieve the same effect as the UI-based Firewall rules feature under Security > WAF.
Deprecation notice
Cloudflare Firewall Rules has been deprecated. Cloudflare has moved existing firewall rules to WAF custom rules. For more information on this change, refer to the upgrade guide.
These APIs are the following:
- Firewall Rules API: Manage firewall rules and their actions, based on criteria separately defined through filters.
- Filters API: Manage the filters that enable rule matching.
- Lists API: Manage named lists of items (such as IP addresses) that you can use in the rules of different Cloudflare products.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark