Security rules

Last updated Sep 8, 2026 Security rules perform security-related actions on incoming requests that match specified filters. Rules are evaluated and executed in order, from first to last.

You can create Security Rules from reviewed Attack Signature Detection confidence, category, and Ref metadata.

To access security rules in the new security dashboard, go to the Security rules page.

Go to Security rules ↗

Security rules

The Security rules tab includes a list of different types of rules configured in your domain/zone to protect your applications and resources.

To create a security rule:

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. (Optional) Select Templates, and then select a template from the list. You can customize the default configuration of the template before deploying the new rule. Refer to the resources listed in the next step.
  3. Select Create rule > select the type of rule you want to create. Refer to the following resources about each rule type:
  4. Custom rules
  5. Rate limiting rules
  6. API sequence rules
  7. API JWT validation rules (requires a token configuration)
  8. Managed rules exceptions
  9. Content security rules (previously known as policies)

Notes

To deploy a managed ruleset, go to the Security Settings page. For more information, refer to Deploy a managed ruleset.

The Security rules tab includes functionality available in different products in the previous dashboard navigation structure, such as the WAF, API Shield, and client-side security.

The tab may show additional rule types if you have configured at least one of the following:

DDoS protection

The DDoS protection tab shows the multiple DDoS mitigation services provided by Cloudflare. You can create rules to override these mitigation tools. DDoS attack protection overrides are only available to Enterprise customers with the Advanced DDoS Protection subscription.

To learn more about DDoS protection overrides, refer to the following resources:

Note

You define overrides for the Network-layer DDoS attack protection managed ruleset at the account level.

Interaction between different app security features

If you are using several app security features like custom rules, Managed Rules, and Super Bot Fight Mode, it is important to understand how these features interact and the order in which they execute. Refer to Security features interoperability for more information.

Was this helpful?

YesNo

On this page

Security rules - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/security/rules/#page","headline":"Security rules","description":"Security rules perform security actions on incoming requests that match specified filters.","url":"https://developers.cloudflare.com/security/rules/","inLanguage":"en","image":"https://developers.cloudflare.com/security/rules/og.png?v=28208f8b98d2defd","dateModified":"2026-09-08","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: Configure different Cloudflare security features that protect your web applications, APIs, and resources. title: Security settings image: https://developers.cloudflare.com/security/settings/og.png?v=14f099136a8746f0


Skip to content

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