About (12)

Last updated Apr 16, 2026 The Cloudflare Ruleset Engine allows you to create and deploy rules and rulesets. The engine syntax, inspired by the Wireshark Display Filter language, is defined by the Rules language. Cloudflare uses the Ruleset Engine in different products, allowing you to configure several products using the same basic syntax.

There are several elements involved in the configuration and use of the Ruleset Engine. These elements are:

  • Phase: Defines a stage in the life of a request where you can execute rulesets.
  • Ruleset: Defines a versioned set of rules. You deploy rulesets to a phase, where they execute.
  • Rule: Defines a filter and an action to perform on incoming requests that match the filter expression. A rule with an execute action executes a ruleset.

Get started

To view existing rulesets and their properties, refer to View rulesets.

For more information on deploying managed rulesets and defining overrides, refer to Work with managed rulesets.

For more information on creating and deploying custom rulesets, refer to Work with custom rulesets.

Was this helpful?

YesNo

On this page

About (12) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ruleset-engine/about/#page","headline":"About","description":"Core concepts for the Ruleset Engine, including rules, rulesets, and phases.","url":"https://developers.cloudflare.com/ruleset-engine/about/","inLanguage":"en","image":"https://developers.cloudflare.com/ruleset-engine/about/og.png?v=27be8a168bcc695d","dateModified":"2026-04-16","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: How phases organize rule execution in the Ruleset Engine request lifecycle. title: Phases image: https://developers.cloudflare.com/ruleset-engine/about/phases/og.png?v=cb35372b3c8e5581


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ruleset-engine/llms.txt
Use this file to discover all available pages before exploring further.