Phases list
Last updated Oct 12, 2026 The following tables list the phases of Cloudflare products powered by the Ruleset Engine, in the order those phases are executed. Some products such as the Cloudflare Web Application Firewall have more than one associated phase.
Network layer
Network-layer ↗︎ phases apply to packets received on the Cloudflare global network.
| Phase name | Used in product/feature |
|---|---|
ddos_l4 |
Network-layer DDoS Attack Protection |
magic_transit |
Cloudflare Network Firewall |
magic_transit_managed |
Cloudflare Network Firewall managed rulesets |
magic_transit_ratelimit |
Cloudflare Network Firewall rate limiting policies |
magic_transit_ids_managed |
Cloudflare Network Firewall Intrusion Detection System (IDS) |
Application layer
Application-layer ↗︎ phases apply to requests received on the Cloudflare global network.
Request phases
The phases execute in the order they appear in the table.
| Phase name | Used in product/feature |
|---|---|
http_request_dynamic_redirect |
Single Redirects |
http_request_sanitize |
URL normalization |
http_request_transform |
URL Rewrite Rules |
| N/A (internal phase) | Waiting Room Rules |
| N/A (internal detection phase)† | API Shield |
http_config_settings |
Configuration Rules |
http_request_origin |
Origin Rules |
ddos_l7* |
HTTP DDoS Attack Protection |
http_request_firewall_custom |
Custom rules (Web Application Firewall) |
http_ratelimit |
Rate limiting rules (WAF) |
| N/A (internal mitigation phase)‡ | API Shield |
http_request_firewall_managed |
WAF Managed Rules |
http_request_sbfm |
Super Bot Fight Mode |
| N/A (internal phase) | Cloudflare Access application check |
http_request_redirect |
Bulk Redirects |
| N/A (internal phase) | Managed Transforms |
http_request_late_transform |
Request Header Transform Rules |
http_request_cache_settings |
Cache Rules |
http_request_snippets |
Snippets |
http_request_cloud_connector |
Cloud Connector |
* This phase is for configuration purposes only — the corresponding rules will not be executed at this stage in the request handling process.
† Detections run at this phase. Detection results are available to later phases.
‡ Mitigation actions can run at this stage if configured.
For Cloudflare Access, the Cloudflare Access row refers to Access application checking. Access enforcement and handling run in later internal phases, after Bulk Redirects.
Change notice for Super Bot Fight Mode rulesets
Updating Super Bot Fight Mode rules via the Rulesets API is no longer supported and may cause unexpected behavior if you do so.
Response phases
The phases execute in the order they appear in the table.
| Phase name | Used in product/feature |
|---|---|
http_custom_errors |
Custom Errors |
| N/A (internal phase) | Managed Transforms |
http_response_headers_transform |
Response Header Transform Rules |
http_ratelimit |
Rate limiting rules (when they use response information) |
http_response_compression |
Compression Rules |
http_response_firewall_managed |
Cloudflare Sensitive Data Detection (Data Loss Prevention) |
http_log_custom_fields |
Logpush custom fields |
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ruleset-engine/reference/phases-list/#page","headline":"Phases list","description":"Complete list of phases available in the Ruleset Engine.","url":"https://developers.cloudflare.com/ruleset-engine/reference/phases-list/","inLanguage":"en","image":"https://developers.cloudflare.com/ruleset-engine/reference/phases-list/og.png?v=06ebf58db3f32266","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Find Cloudflare support resources and troubleshooting guides. title: Support image: https://developers.cloudflare.com/support/og.png?v=901e40c717f52a05
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/support/llms.txt
Use this file to discover all available pages before exploring further.
Docs