Cloudflare Docs
Ruleset Engine
Edit this page on GitHub
Set theme to dark (⇧+D)

About Ruleset Engine

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.