Build a sequence rule within custom rules
Last updated Apr 16, 2026 You can build an API sequence rule via the Cloudflare dashboard.
- In the Cloudflare dashboard, go to the Security rules page. Go to Security rules ↗
- To create a new empty rule, select Create rule > Custom rules.
- Enter a descriptive name for the rule in Rule name.
- Under When incoming requests match, use the Field drop-down list to filter by Sequences and select from:
- Current Operation
- Previous Operations
- Elapsed time
- Under Value, select the edit icon to use Builder and build a sequence on the side panel.
- 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.
- From the Methods dropdown list, choose all methods or a specific request method.
- Select the checkbox for each endpoint in the order that you want them to appear in the sequence.
- Set the time to complete.
- Select Save.
- 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.
- (Optional) If you selected the Block action, you can configure a custom response.
- Under Place at, select the order of when the rule will fire.
- 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
{"@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
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.
Docs