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

Create a configuration rule in the dashboard

  1. Log in to the Cloudflare dashboard and select your account and domain.
  2. Go to Rules > Configuration Rules.
  3. Select Create rule.
  4. Enter a descriptive name for the rule in Rule name.
  5. Under When incoming requests match, select if you wish to apply the rule to all incoming requests or only to requests that match a custom filter expression.
  6. (Optional) To define a custom expression, use the Expression Builder (specifying one or more values for Field, Operator, and Value) or manually enter an expression using the Expression Editor. For more information, refer to Edit expressions in the dashboard.
  7. Under Then the settings are, add the configuration settings you wish to change for requests matching the rule expression.
  8. To save and deploy your rule, select Deploy. If you are not ready to deploy your rule, select Save as Draft.