Manage sequence rules

Last updated Sep 29, 2026 Cloudflare recommends creating sequence rules using WAF custom rules. Refer to the sequence custom rules documentation for more information.

Note

Sequence mitigation is currently in a closed beta and is only available for Enterprise customers. If you would like to be included in the beta, contact your account team.

Create a sequence rule

The starting and ending endpoints must use the same hostname.

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. Select Create rule and choose API sequence rules.
  3. Name your rule.
  4. Select a starting endpoint. This is the endpoint that you expect users to hit first in their request flow when using your API.
  5. Choose a hostname to display the list of endpoints for that hostname.
  6. Choose an endpoint.
  7. Select Set as starting endpoint.
  8. Select a final endpoint. This is the endpoint you are targeting for protection.
  9. Choose the same hostname as the starting endpoint to display its endpoints.
  10. Choose an endpoint.
  11. Select Set as ending endpoint.
  12. Choose an action that corresponds to the security model type:
  13. Allow: This will create a positive security model by defining approved sequences on your API.
  14. Log / Block: This will test or enforce a negative security model defining known bad sequences on your API.

Note

If you chose Allow, select whether to log or block the request to the final endpoint when users do not first request the starting endpoint in the sequence. 7. Select Create rule.

Edit a sequence rule

You also have the option to edit an existing rule by selecting it on the rule list. You can rename your rule, adjust the starting and ending endpoint order, modify the endpoint, and change the action of the rule.

Reprioritize a sequence rule

You can change the priority order of your rules by selecting and dragging the rules on the list.

You can also explicitly set a priority order by selecting the three dots on your rule and choosing Move to… where you can set the new priority in the resulting modal window.

Was this helpful?

YesNo

On this page

Manage sequence rules - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/api-shield/security/sequence-mitigation/manage-sequence-rules/#page","headline":"Manage sequence rules","description":"Create and manage sequence rules in the dashboard or via WAF custom rules.","url":"https://developers.cloudflare.com/api-shield/security/sequence-mitigation/manage-sequence-rules/","inLanguage":"en","image":"https://developers.cloudflare.com/api-shield/security/sequence-mitigation/manage-sequence-rules/og.png?v=980cb29ac82a9aa9","dateModified":"2026-09-29","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: Set up adaptive, per-session rate limiting for API endpoints with Volumetric Abuse Detection. title: Volumetric Abuse Detection image: https://developers.cloudflare.com/api-shield/security/volumetric-abuse-detection/og.png?v=894010f6b76bafbd


Skip to content

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