Cloudflare Managed Ruleset

Last updated Aug 25, 2026 Created by the Cloudflare security team, this ruleset provides fast and effective protection for all of your applications. The ruleset is updated frequently to cover new vulnerabilities and reduce false positives.

Cloudflare recommends that you enable the rules whose tags correspond to your technology stack. For example, if you use WordPress, enable the rules tagged with wordpress.

Cloudflare's WAF changelog allows you to monitor ongoing changes to the WAF's managed rulesets.

Note

Some rules in the Cloudflare Managed Ruleset are disabled by default, intending to strike a balance between providing the right protection and reducing the number of false positives.

It is not recommended that you enable all the available rules using overrides, since it may affect legitimate traffic, unless you are running a proof of concept (PoC) to understand what kind of requests the WAF can block.

Deploy the Cloudflare Managed Ruleset

  1. In the Cloudflare dashboard, go to the Security Settings page. Go to Settings ↗
  2. (Optional) Filter by Web application exploits.
  3. Turn on Cloudflare managed ruleset.
  4. Review the deployment settings. Edit the scope, if necessary, to apply the ruleset to a subset of the incoming requests, or configure any custom settings (also known as overrides).
  5. Select Save.

This operation deploys the managed ruleset for the current zone, creating a new rule with the Execute action.

Configure in the dashboard

You can configure (or override) the Cloudflare Managed Ruleset, overriding its default configuration, at several levels:

When you create several overrides at different levels, more specific configurations (tag and rule level) have priority over less specific configurations (ruleset level). Refer to Override a managed ruleset in the Ruleset Engine documentation for more information.

Ruleset-level configuration

You can configure (or override) the following Cloudflare Managed Ruleset settings in the Cloudflare dashboard:

  • Scope: When you define a custom filter expression for the scope, the Cloudflare Managed Ruleset applies only to a subset of the incoming requests. By default, a managed ruleset deployed in the dashboard applies to all incoming traffic.
  • Ruleset action: When you define an action for the ruleset, you override the default action defined for each rule. The available actions are: Block, Log, Non-Interactive Challenge, Managed Challenge, and Interactive Challenge. To remove the action override at the ruleset level, set the ruleset action to Default.
  • Ruleset status: Enables or disables all the rules in the ruleset.

Note

When you enable all the rules in the ruleset, you will affect rules that are disabled by default and all the rules that are added to the managed ruleset in the future. - Payload logging: When enabled, logs the request information (payload) that triggered a specific rule of the managed ruleset. You must configure a public key to encrypt the payload.

Once you have deployed the Cloudflare Managed Ruleset, do the following to configure it in the dashboard:

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. (Optional) Filter by Managed rules.
  3. Search for Cloudflare Managed Ruleset. Look for a rule with an Execute action.
  4. Select the rule name (containing the name of the managed ruleset) to open the deployment configuration page.
  5. (Optional) To execute the Cloudflare Managed Ruleset for a subset of incoming requests, select Edit scope and configure the expression that will determine the scope of the current rule deploying the managed ruleset.
  6. In the ruleset configuration section, define settings for all the rules in the Cloudflare Managed Ruleset by setting one or more fields using the drop-down lists.

For example, select the action to perform for all the rules in the ruleset.The Configure deployment page displaying the available options to override all the rules in the Cloudflare Managed Ruleset: ruleset action and ruleset status. 7. Select Save.

Tag-level configuration

You can configure (or override) the following Cloudflare Managed Ruleset settings in the dashboard for rules tagged with at least one of the selected tags:

  • Rule action: Sets the rule action for all the rules with the selected tags. The available actions are: Block, Log, Non-Interactive Challenge, Managed Challenge, and Interactive Challenge.
  • Rule status: Sets the rule status for all the rules with the selected tags.

Note

Setting any of these configurations for specific tags affects all current and future rules with the tags you selected.

Once you have deployed the Cloudflare Managed Ruleset, do the following to configure rules with specific tags in the dashboard:

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. (Optional) Filter by Managed rules.
  3. Search for Cloudflare Managed Ruleset. Look for a rule with an Execute action.
  4. Select the rule name (containing the name of the managed ruleset), and then select Browse rules.The Cloudflare dashboard displaying the list of rules in the Cloudflare Managed Ruleset.

  5. Select one or more tags under the search input to filter the rules with those tags, and then select the checkbox in the top left corner of the table to select all the rules shown in the current page.
    If not all the rules are displayed in the current page, extend your selection to all rules with the selected tags across all pages by selecting Select all \<NUMBER> rules.The Configure deployment page displaying selected rules with the 'sqli' tag in the Cloudflare Managed Ruleset.

  6. Update one or more settings for the selected rules using the buttons displayed in the top right corner of the table (for example, Set status).
  7. Select Next.
  8. A dialog appears asking you if any new rules with the selected tags should be configured with the field values you selected.
  9. Select Include new rules if you want to apply your configurations to any new rules with the select tags.
  10. Select Only selected rules to apply your configurations to the selected rules only.
  11. Select Save.

Rule-level configuration

You can configure (or override) the following Cloudflare Managed Ruleset settings in the dashboard for the selected rules:

  • Rule action: Sets the action of a single rule or, if you select multiple rules, for the selected rules. The available actions are: Block, Log, Non-Interactive Challenge, Managed Challenge, and Interactive Challenge. Once you have changed the configuration of a rule, you have the option to reset the configuration back to the default one as defined in the Cloudflare Managed Ruleset.
  • Rule status: Sets the status (enabled or disabled) of a single rule or, if you select multiple rules, for the selected rules.

Once you have deployed the Cloudflare Managed Ruleset, do the following to configure individual ruleset rules in the dashboard:

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. (Optional) Filter by Managed rules.
  3. Search for Cloudflare Managed Ruleset. Look for a rule with an Execute action.
  4. Select the rule name (containing the name of the managed ruleset), and then select Browse rules.The Cloudflare dashboard displaying the list of rules in the Cloudflare Managed Ruleset.

  5. Search for rules using the available filters.

  6. In the results list, change the values for each rule as desired, using the displayed drop-down lists and toggles. For example, change the status of a rule using the Status toggle next to the rule.

To configure multiple rules with the same value, select the checkboxes for all the rules you want to configure. If not all the rules are displayed in the current page, you can extend your selection to all rules across all pages by selecting Select all \<NUMBER> rules. Then, use the buttons displayed in the top right corner of the table — for example, Set status — to update one or more fields for the selected rules.The Configure deployment page displaying selected rules in the Cloudflare Managed Ruleset. 7. Select Next, and then select Save.