Origin Rule — Split Traffic Between Origins
Route requests to different origin servers based on URL path. The default origin (configured in DNS) handles marketing/static paths, while an Origin Rule overrides the origin for application paths.
Loading...
Ready-to-deploy configuration presets for CloudflareRuleset — Technical Deep Dive. Each preset is a complete manifest you can copy, customize, and deploy.
7 presetsRoute requests to different origin servers based on URL path. The default origin (configured in DNS) handles marketing/static paths, while an Origin Rule overrides the origin for application paths.
Enable Cloudflare's managed WAF rulesets to protect against common web attacks including XSS, SQL injection, and OWASP Top 10 vulnerabilities.
Configure Cloudflare's edge caching with aggressive TTLs for static assets and explicit cache bypass for dynamic API endpoints.
Throttle abusive traffic with the `http_ratelimit` phase. Each rule counts requests per a set of characteristics (buckets) over a period and applies its action when the threshold is exceeded.
Override zone settings per request with the `http_config_settings` phase. A `set_config` rule applies settings (SSL mode, security level, Rocket Loader, Polish, auto-minify, email obfuscation, …)...
Take full control of the cache key with the `http_request_cache_settings` phase: include only the query parameters, cookies, headers, and user attributes that should vary the cached object, and...
Apply a large set of URL redirects from a reusable Bulk Redirect list. The list holds the source → target entries (managed independently as `CloudflareListItem` resources), and an account-level...