Build a sequence rule within custom rules

Last updated Apr 16, 2026 You can build an API sequence rule via the Cloudflare dashboard.

  1. In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
  2. To create a new empty rule, select Create rule > Custom rules.
  3. Enter a descriptive name for the rule in Rule name.
  4. Under When incoming requests match, use the Field drop-down list to filter by Sequences and select from:
  5. Current Operation
  6. Previous Operations
  7. Elapsed time
  8. Under Value, select the edit icon to use Builder and build a sequence on the side panel.
  9. Under Select a hostname for this sequence, choose all or a specific hostname from the dropdown list. Optionally, you can use the search bar to search for a specific hostname.
  10. From the Methods dropdown list, choose all methods or a specific request method.
  11. Select the checkbox for each endpoint in the order that you want them to appear in the sequence.
  12. Set the time to complete.
  13. Select Save.
  14. Under Then take action, select the rule action in the Choose action dropdown. For example, selecting Block tells Cloudflare to refuse requests that match the conditions you specified.
  15. (Optional) If you selected the Block action, you can configure a custom response.
  16. Under Place at, select the order of when the rule will fire.
  17. To save and deploy your rule, select Deploy. If you are not ready to deploy your rule, select Save as Draft.

Note

The fields in the custom rule are populated as a grouped sequence based on the values that you entered on Builder.

Was this helpful?

YesNo

On this page

Build a sequence rule within custom rule - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/waf/custom-rules/use-cases/sequence-custom-rules/#page","headline":"Build a sequence rule within custom rules","description":"Build sequence-based rules within WAF custom rules.","url":"https://developers.cloudflare.com/waf/custom-rules/use-cases/sequence-custom-rules/","inLanguage":"en","image":"https://developers.cloudflare.com/waf/custom-rules/use-cases/sequence-custom-rules/og.png?v=3bb28a8b561c70e9","dateModified":"2026-04-16","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: Restrict admin area access to known IP addresses. title: Require known IP addresses in site admin area image: https://developers.cloudflare.com/waf/custom-rules/use-cases/site-admin-only-known-ips/og.png?v=17e66c82ee5519a6


Skip to content

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