Cloudflare firewall rules no longer exist as a separate feature: Cloudflare converted them into WAF custom rules in a rollout that started on February 28, 2023 (Cloudflare’s 2023 guide), and stopped supporting the Firewall Rules API on June 15, 2025 (Firewall rules upgrade). Your old rules still run, and what breaks is the rule you copy from a guide: of the six third-party guides we read for this search, five still teach parts Cloudflare retired, and three recommend cf.threat_score, a field Cloudflare now always sets to 0. Lelops Advise lists your custom rules, explains what an old one was meant to do, and rewrites it after your OK, with a version saved for each change.
Where Did Cloudflare Firewall Rules Go?
They became WAF custom rules on the same zone, in the order they ran before. In the new security dashboard they sit on the Security rules page, and in the old one under Security > WAF > Custom rules. Unlike Page Rules, which still run while Cloudflare prepares their migration, firewall rules now share one list with custom rules.
The conversion gave every rule a new ID, so a script or a runbook that stored a firewall rule ID points at nothing. It also enabled any active firewall rule whose filter was paused, so a rule you paused that way may be running today. IP access rules were always a separate list, checked before custom rules, and our IP access rules guide covers how they differ.
What Changed Between Cloudflare Firewall Rules and Custom Rules

The actions, the order, the block page and the API changed; the expression syntax did not:
- Allow and Bypass: both became Skip. In a Skip rule, the option All remaining custom rules does what Allow did, and the products you select do what Bypass did.
- Order: under priority ordering, a Block and an Allow at the same priority let the request through. Among custom rules, a Block placed above a Skip blocks it, because the first Block or challenge that matches ends evaluation; our WAF rules guide covers what runs after custom rules.
- Block page: a blocked request got error 1020, and now gets the WAF block response, which Pro plans and above can set per rule.
- API: custom rules live in the Rulesets API, phase
http_request_firewall_custom. Cloudflare’s API reference says each Firewall Rules endpoint “has been deprecated and returns 410 Gone”, and in its public API schema we found every operation of the Firewall Rules and Filters APIs marked deprecated.
Cloudflare Firewall Rules Not Working? Check the Fields First
A rule copied from an old guide can be valid and never match, because two groups of fields changed. Cloudflare’s docs have said since December 2024 that the threat score is no longer populated, and today that it is always 0 (Security Level). So cf.threat_score gt 10 is never true and a rule that requires it never fires, while cf.threat_score lt 10 is true for every request. The six ip.geoip fields, such as ip.geoip.country, are deprecated but still work, and Cloudflare asks you to use their ip.src versions, such as ip.src.country, instead (Fields reference).
We found the six guides of our count with a web search on December 1, 2026, for “cloudflare firewall rules” and its close wordings. Besides these fields, they teach the Allow and Bypass actions, the Firewall rules tab and the Firewall Rules API. Two of the three threat score guides show a 2026 date on the page, and none of the six says firewall rules are deprecated.
If a rule’s fields are right and it still doesn’t fire, check what runs first: a custom rule above it that blocks, challenges or skips, or an IP access rule that allows the source.
How to Rewrite an Old Firewall Rule as a Custom Rule

We recommend this order: find the rule, rewrite its fields in place, and test it with a challenge before it blocks.
- Find the rule on the Security rules page, or with
GET /zones/{zone_id}/rulesets/phases/http_request_firewall_custom/entrypoint, which returns every custom rule in order, each with its ID, description, expression and action (Create a custom rule via API). - Read the expression for
cf.threat_scoreandip.geoip, and note the rules above it. - Rewrite the fields.
ip.geoip.asnum in {64500}becomesip.src.asnum in {64500}. Cloudflare names no replacement for the threat score: deleting a rule that requirescf.threat_score gt 10changes nothing on your traffic, while acf.threat_score lt 10condition is true for every request, so its rule acts on everything its other conditions match. Decide what the rule was for first. - Merge Allow and Bypass into one Skip rule. Where a trusted source, such as
ip.src in {203.0.113.0/24}, needed an Allow rule and a Bypass rule, create one custom rule on that expression (Create rule > Custom rules). Choose Skip, then All remaining custom rules and the products the old Bypass listed, such as Browser Integrity Check (skip options). Place it above the rules it skips, and delete the rules it replaces. - Test before you block. Below Enterprise, where Log is not available, Cloudflare recommends Managed Challenge first, a look at the matched requests in Security Events, then Block (Create a custom rule).
- Move your scripts from
/firewall/rulesand/filtersto the Rulesets API: read the entry point of step 1, then add, update or delete rules under/zones/{zone_id}/rulesets/{ruleset_id}/rules. A new rule goes last unless the request gives a position.
How to Rewrite Cloudflare Firewall Rules with Lelops Advise

Lelops Advise answers questions about your Cloudflare setup and changes it through a chat, Ask Lelops, so the review above becomes a few questions instead of API calls. It works through the Rulesets API, the one Cloudflare supports for custom rules.
- Connect Cloudflare to Lelops with a scoped API token, and choose the zones Lelops can access. The token needs permission to read the zone’s WAF custom rules, to edit them for steps 4 and 5, and to read analytics for step 6.
- List the rules: open Ask Lelops from the right edge of any page in the Lelops app and write “List the custom rules on example.com.” Before it calls Cloudflare, Ask Lelops shows the call it will make, with the zone, and runs it once you confirm. It reads the zone’s custom rules list, converted firewall rules included, each rule with its ID, description, expression and action. Each call covers one zone, so ask again for every zone you manage.
- Ask what an old rule does: “What does the custom rule with this ID on example.com match, and does it use a deprecated field?” Ask Lelops answers from Cloudflare’s documentation with your zone’s rules as context, so whoever edits the rule knows what it was meant to catch before changing it.
- Rewrite it in place: “On example.com, change the expression of this rule to
ip.src.asnum in {64500}.” Ask Lelops shows the change, with the rule and its new expression, and runs it once you confirm. An edit keeps the rule in its place; a rule Ask Lelops creates goes to the end of the list, as the Rulesets API does by default, so move it in the dashboard when order matters. Lelops also checks that your role in the organization allows the change. - Replace or delete: “Change this rule on example.com to Skip all remaining custom rules”, then “Delete the rule it replaces.” The same works for a rule whose one condition is
cf.threat_score gt 10. Ask Lelops creates and edits custom rules with Block, Interactive Challenge, Non-Interactive Challenge (formerly JS Challenge), Managed Challenge or Skip. - Check that the rule fires: “Which WAF rules triggered most on example.com in the last 24 hours?” Ask Lelops reads the top 10 WAF rules triggered, each with its rule ID, action and number of requests, and the 50 most recent security events, each with the rule ID, IP address and path. Your rewritten rule’s ID appears there once matching traffic arrives.
- Roll back if a change breaks something: each change Ask Lelops made is a new version of the zone in Guard > Versioning, and WAF custom rules are part of every version (Lelops Guard). Expand the version before the change, select Rollback, then Restore and deploy. A rollback restores the whole version of the zone, custom rules and every other part, and needs the Administrator role.
Lelops Advise reads your custom rules, explains the old ones and rewrites them after your OK, with a version saved for every change: lelops.ai/product/advise.
FAQ
Are Cloudflare firewall rules deprecated?
Yes. Cloudflare converted existing firewall rules into WAF custom rules in a phased rollout that began on February 28, 2023, and has not supported the Firewall Rules API or the Filters API since June 15, 2025. The rules kept running as custom rules, in the same order, and Cloudflare says custom rules give the same level of protection.
How do you create a firewall rule in Cloudflare now?
Teams create a custom rule instead: on the Security rules page, Create rule, then Custom rules, with a name, an expression and an action. Through the API, the rule goes into the http_request_firewall_custom phase with the Rulesets API. The Firewall rules tab and its Create a firewall rule button belong to the retired feature.
What replaced the Allow and Bypass actions in Cloudflare?
The Skip action replaced both. A single Skip rule can stop the remaining custom rules, which was the job of Allow, and skip chosen security features such as Browser Integrity Check or Security Level, which was the job of Bypass. Firewall rules needed two rules for that pair; custom rules need one.
What is the difference between Cloudflare firewall rules and IP access rules?
Firewall rules, now custom rules, match any request field through an expression, such as a path, a header or a network. IP access rules match only an IP address, an IP range, an ASN or a country, and Cloudflare checks them before custom rules. An Allow for an IP address or a network in IP access rules exempts it from custom rules, rate limiting and managed rules, while the Allow of the old firewall rules only stopped the other firewall rules.
Does the Cloudflare Firewall Rules API still work?
Not according to Cloudflare. Its API reference says the Firewall Rules endpoints have been deprecated and return 410 Gone, and its list of API deprecations dates both the Firewall Rules API and the Filters API to June 15, 2025. Scripts move to the Rulesets API, where custom rules live in the http_request_firewall_custom phase, under new rule IDs.
Christophe Pronier


