Create an origin rule in the dashboard

Last updated Apr 16, 2026 1. In the Cloudflare dashboard, go to the Rules Overview page. Go to Overview ↗ 2. Select Create rule > Origin Rule. 3. (Optional) Select one of the rule templates that address common use cases. Then, review and adjust the proposed rule configuration. 4. Enter a descriptive name for the rule in Rule name. 5. Under When incoming requests match, define the rule expression. 6. Under Set origin parameters, define the origin rule settings you wish to change for requests matching the rule expression. 7. To save and deploy your rule, select Deploy. If you are not ready to deploy your rule, select Save as Draft.

If you are matching a hostname in your rule expression, you may be prompted to create a proxied DNS record for that hostname. Refer to Troubleshooting for more information.

Was this helpful?

YesNo

On this page

Create an origin rule in the dashboard - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/rules/origin-rules/create-dashboard/#page","headline":"Create an origin rule in the dashboard","description":"Create origin rules in the Cloudflare dashboard.","url":"https://developers.cloudflare.com/rules/origin-rules/create-dashboard/","inLanguage":"en","image":"https://developers.cloudflare.com/rules/origin-rules/create-dashboard/og.png?v=9d89164c92d2dc20","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: Example origin rules for routing and header modifications. title: Origin Rules examples image: https://developers.cloudflare.com/rules/origin-rules/examples/og.png?v=e979093fb0ba7c47


Skip to content

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