OpenMCF logoOpenMCF

Loading...

CloudflareRuleset — Technical Deep Dive

CloudflareRuleset — Technical Deep Dive Presets

Ready-to-deploy configuration presets for CloudflareRuleset — Technical Deep Dive. Each preset is a complete manifest you can copy, customize, and deploy.

7 presets
01

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.

02

Managed WAF — Cloudflare + OWASP Rulesets

Enable Cloudflare's managed WAF rulesets to protect against common web attacks including XSS, SQL injection, and OWASP Top 10 vulnerabilities.

03

Cache Settings — Static Assets + API Bypass

Configure Cloudflare's edge caching with aggressive TTLs for static assets and explicit cache bypass for dynamic API endpoints.

04

Preset: Rate limiting rules

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.

05

Preset: Configuration rules (set_config)

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, …)...

06

Preset: Advanced cache key and Cache Reserve

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...

07

Bulk Redirect — Redirect From a List

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...