diff --git a/src/content/docs/rules/cloud-connector/index.mdx b/src/content/docs/rules/cloud-connector/index.mdx index 57ed48f5c85dc3e..e7b22f4ee905884 100644 --- a/src/content/docs/rules/cloud-connector/index.mdx +++ b/src/content/docs/rules/cloud-connector/index.mdx @@ -17,7 +17,7 @@ Cloud Connector (beta) allows you to route matching incoming traffic from your w ## How it works diff --git a/src/content/docs/rules/compression-rules/create-api.mdx b/src/content/docs/rules/compression-rules/create-api.mdx index 83a7981646032cf..2eaa8ee19c87df8 100644 --- a/src/content/docs/rules/compression-rules/create-api.mdx +++ b/src/content/docs/rules/compression-rules/create-api.mdx @@ -24,7 +24,10 @@ When creating a compression rule via API, make sure you: ## Examples diff --git a/src/content/docs/rules/compression-rules/index.mdx b/src/content/docs/rules/compression-rules/index.mdx index 875a4d204280bb1..3abe865cf84c24a 100644 --- a/src/content/docs/rules/compression-rules/index.mdx +++ b/src/content/docs/rules/compression-rules/index.mdx @@ -15,7 +15,7 @@ When there is a match for a compression rule configured with several compression ## Get started diff --git a/src/content/docs/rules/configuration-rules/create-api.mdx b/src/content/docs/rules/configuration-rules/create-api.mdx index 4f0ac6e05bfd237..f6f0857daae471d 100644 --- a/src/content/docs/rules/configuration-rules/create-api.mdx +++ b/src/content/docs/rules/configuration-rules/create-api.mdx @@ -7,10 +7,9 @@ sidebar: head: - tag: title content: Create a configuration rule via API - --- -import { Details, Render } from "~/components" +import { Details, Render } from "~/components"; Use the [Rulesets API](/ruleset-engine/rulesets-api/) to create configuration rules via API. @@ -18,19 +17,24 @@ Use the [Rulesets API](/ruleset-engine/rulesets-api/) to create configuration ru When creating a configuration rule via API, make sure you: -* Set the rule action to `set_config`. -* Define the parameters in the `action_parameters` field according to the [settings](/rules/configuration-rules/settings/) you wish to override for matching requests. -* Deploy the rule to the `http_config_settings` phase at the zone level. +- Set the rule action to `set_config`. +- Define the parameters in the `action_parameters` field according to the [settings](/rules/configuration-rules/settings/) you wish to override for matching requests. +- Deploy the rule to the `http_config_settings` phase at the zone level. ## Procedure - + Make sure your API token has the [required permissions](#required-api-token-permissions) to perform the API operations. ## Example requests -
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single configuration rule — enabling Email Obfuscation and Browser Integrity Check for the contacts page — using the [Update a zone ruleset](/api/resources/rulesets/methods/update/) operation: @@ -55,10 +59,8 @@ https://api.cloudflare.com/client/v4/zones/{zone_id}/rulesets/{ruleset_id} \ }' ``` -
-
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single configuration rule — turning on I'm Under Attack mode for the administration area — using the [Update a zone ruleset](/api/resources/rulesets/methods/update/) operation: @@ -82,13 +84,12 @@ https://api.cloudflare.com/client/v4/zones/{zone_id}/rulesets/{ruleset_id} \ }' ``` -
-*** +--- ## Required API token permissions The API token used in API requests to manage configuration rules must have at least the following permission: -* *Zone* > *Config Rules* > *Edit* +- _Zone_ > _Config Rules_ > _Edit_ diff --git a/src/content/docs/rules/configuration-rules/index.mdx b/src/content/docs/rules/configuration-rules/index.mdx index 61fb404756916b3..1da28c488e8b58d 100644 --- a/src/content/docs/rules/configuration-rules/index.mdx +++ b/src/content/docs/rules/configuration-rules/index.mdx @@ -16,7 +16,7 @@ The configuration rule expression will determine to which requests the rule sett --- diff --git a/src/content/docs/rules/configuration-rules/settings.mdx b/src/content/docs/rules/configuration-rules/settings.mdx index a1eb1d175c1fd6a..95bc990fd8ce5a8 100644 --- a/src/content/docs/rules/configuration-rules/settings.mdx +++ b/src/content/docs/rules/configuration-rules/settings.mdx @@ -6,10 +6,9 @@ sidebar: head: - tag: title content: Configuration Rules settings - --- -import { Details, Render } from "~/components" +import { Details, Render } from "~/components"; You can change the configuration settings described below in a configuration rule. @@ -19,7 +18,6 @@ You can change the configuration settings described below in a configuration rul Use this setting to turn on or off Automatic HTTPS Rewrites for matching requests. -
API configuration property name: `"automatic_https_rewrites"` (boolean). @@ -32,7 +30,6 @@ API configuration property name: `"automatic_https_rewrites"` (boolean). -
## Browser Integrity Check @@ -41,7 +38,6 @@ API configuration property name: `"automatic_https_rewrites"` (boolean). Use this setting to turn on or off Browser Integrity Check for matching requests. -
API configuration property name: `"bic"` (boolean). @@ -54,7 +50,6 @@ API configuration property name: `"bic"` (boolean). -
## Disable Apps @@ -63,7 +58,6 @@ API configuration property name: `"bic"` (boolean). Use this setting to turn off all active Cloudflare Apps for matching requests. -
API configuration property name: `"disable_apps"` (boolean). @@ -76,7 +70,6 @@ API configuration property name: `"disable_apps"` (boolean). -
## Disable Real User Monitoring (RUM) @@ -85,8 +78,7 @@ API configuration property name: `"disable_apps"` (boolean). Use this setting to turn off Web Analytics for matching requests. - - +
@@ -100,7 +92,6 @@ API configuration property name: `"disable_rum"` (boolean). -
## Disable Zaraz @@ -109,7 +100,6 @@ API configuration property name: `"disable_rum"` (boolean). Use this setting to turn off Zaraz for matching requests. -
API configuration property name: `"disable_zaraz"` (boolean). @@ -122,7 +112,6 @@ API configuration property name: `"disable_zaraz"` (boolean). -
## Hotlink Protection @@ -131,7 +120,6 @@ API configuration property name: `"disable_zaraz"` (boolean). Use this setting to turn on or off Hotlink Protection for matching requests. -
API configuration property name: `"hotlink_protection"` (boolean). @@ -144,7 +132,6 @@ API configuration property name: `"hotlink_protection"` (boolean). -
## Email Obfuscation @@ -153,7 +140,6 @@ API configuration property name: `"hotlink_protection"` (boolean). Use this setting to turn on or off Email Obfuscation for matching requests. -
API configuration property name: `"email_obfuscation"` (boolean). @@ -166,7 +152,6 @@ API configuration property name: `"email_obfuscation"` (boolean). -
## Fonts @@ -175,7 +160,6 @@ API configuration property name: `"email_obfuscation"` (boolean). Use this setting to turn on or off Cloudflare Fonts for matching requests. -
API configuration property name: `"fonts"` (boolean). @@ -188,7 +172,6 @@ API configuration property name: `"fonts"` (boolean). -
## Mirage @@ -197,7 +180,6 @@ API configuration property name: `"fonts"` (boolean). Use this setting to turn on or off Mirage for matching requests. -
API configuration property name: `"mirage"` (boolean). @@ -210,7 +192,6 @@ API configuration property name: `"mirage"` (boolean). -
## Opportunistic Encryption @@ -219,7 +200,6 @@ API configuration property name: `"mirage"` (boolean). Use this setting to turn on or off Opportunistic Encryption for matching requests. -
API configuration property name: `"opportunistic_encryption"` (boolean). @@ -232,7 +212,6 @@ API configuration property name: `"opportunistic_encryption"` (boolean). -
## Polish @@ -241,13 +220,12 @@ API configuration property name: `"opportunistic_encryption"` (boolean). Use this setting to configure Polish for matching requests: -* Off -* Lossless -* Lossy +- Off +- Lossless +- Lossy Refer to [Compression options](/images/polish/compression/#compression-options) for more information on these values. -
API configuration property name: `"polish"` (string). @@ -262,7 +240,6 @@ API values: `"off"`, `"lossless"`, `"lossy"`. -
## Rocket Loader @@ -271,7 +248,6 @@ API values: `"off"`, `"lossless"`, `"lossy"`. Use this setting to turn on or off Rocket Loader for matching requests. -
API configuration property name: `"rocket_loader"` (boolean). @@ -284,7 +260,6 @@ API configuration property name: `"rocket_loader"` (boolean). -
## Security Level @@ -293,16 +268,15 @@ API configuration property name: `"rocket_loader"` (boolean). Use this setting to select the security level for matching requests: -* Off -* Essentially Off -* Low -* Medium -* High -* I'm Under Attack +- Off +- Essentially Off +- Low +- Medium +- High +- I'm Under Attack Refer to [Security levels](/waf/tools/security-level/#security-levels) for more information on these values. -
API configuration property name: `"security_level"` (string). @@ -317,7 +291,6 @@ API values: `"off"`, `"essentially_off"`, `"low"`, `"medium"`, `"high"`, `"under -
## SSL @@ -326,15 +299,14 @@ API values: `"off"`, `"essentially_off"`, `"low"`, `"medium"`, `"high"`, `"under Use this setting to configure the SSL/TLS encryption mode for matching requests: -* Off -* Flexible -* Full -* Strict -* Origin Pull +- Off +- Flexible +- Full +- Strict +- Origin Pull Refer to [Available encryption modes](/ssl/origin-configuration/ssl-modes/#available-encryption-modes) for more information on these values. -
API configuration property name: `"ssl"` (string). @@ -349,7 +321,6 @@ API values: `"off"`, `"flexible"`, `"full"`, `"strict"`, `"origin_pull"`. -
## SXG @@ -358,7 +329,6 @@ API values: `"off"`, `"flexible"`, `"full"`, `"strict"`, `"origin_pull"`. Use this setting to turn on or off signed exchanges for matching requests. -
API configuration property name: `"sxg"` (boolean). @@ -371,5 +341,4 @@ API configuration property name: `"sxg"` (boolean). -
diff --git a/src/content/docs/rules/normalization/index.mdx b/src/content/docs/rules/normalization/index.mdx index b9912f9cd907874..8bba0004e831fca 100644 --- a/src/content/docs/rules/normalization/index.mdx +++ b/src/content/docs/rules/normalization/index.mdx @@ -20,7 +20,7 @@ URL normalization does not perform any redirect --- diff --git a/src/content/docs/rules/origin-rules/create-api.mdx b/src/content/docs/rules/origin-rules/create-api.mdx index 8ce0cca8ccc8d61..53eeffee1dc5783 100644 --- a/src/content/docs/rules/origin-rules/create-api.mdx +++ b/src/content/docs/rules/origin-rules/create-api.mdx @@ -24,7 +24,7 @@ When creating an origin rule via API, make sure you: Make sure your API token has the [required permissions](#required-api-token-permissions) to perform the API operations. diff --git a/src/content/docs/rules/origin-rules/index.mdx b/src/content/docs/rules/origin-rules/index.mdx index fa4e0a24102fcbb..a676e994b434084 100644 --- a/src/content/docs/rules/origin-rules/index.mdx +++ b/src/content/docs/rules/origin-rules/index.mdx @@ -21,11 +21,14 @@ The origin rule expression will determine when these overrides will be applied.
- + ## Rules templates diff --git a/src/content/docs/rules/page-rules/reference/settings.mdx b/src/content/docs/rules/page-rules/reference/settings.mdx index 67bdf00bc64127f..b56275f35205623 100644 --- a/src/content/docs/rules/page-rules/reference/settings.mdx +++ b/src/content/docs/rules/page-rules/reference/settings.mdx @@ -7,10 +7,9 @@ sidebar: head: - tag: title content: Settings | Page Rules - --- -import { Render } from "~/components" +import { Render } from "~/components"; Settings control the action Cloudflare takes once a request matches the URL pattern defined in a page rule. You can use settings to enable and disable multiple Cloudflare features across the dashboard. @@ -18,8 +17,8 @@ Settings control the action Cloudflare takes once a request matches the URL patt Note that: -* Some settings require a Pro, Business, or Enterprise domain plan. -* You can specify more than one setting to apply when the rule triggers. +- Some settings require a Pro, Business, or Enterprise domain plan. +- You can specify more than one setting to apply when the rule triggers. Below is the full list of settings available, presented in the order that they appear in the **Cloudflare Page Rules** page in the Cloudflare dashboard. @@ -43,15 +42,15 @@ Below is the full list of settings available, presented in the order that they a | Edge Cache TTL | Specify how long to cache a resource in the Cloudflare global network. *Edge Cache TTL* is not visible in response headers. | All | | [Email Obfuscation](/waf/tools/scrape-shield/email-address-obfuscation/) | Turn on or off **Email Obfuscation**. | All | | Forwarding URL | Redirects one URL to another using an `HTTP 301/302` redirect. Refer to [Wildcard matching and referencing](/rules/page-rules/reference/wildcard-matching/). | All | -| [Host Header Override](/rules/page-rules/how-to/rewrite-host-headers/) | Apply a specific host header. | Enterprise | -| IP Geolocation Header | Cloudflare adds a `CF-IPCountry` HTTP header containing the country code that corresponds to the visitor. | All | +| [Host Header Override](/rules/page-rules/how-to/rewrite-host-headers/) | Apply a specific host header. | Enterprise | +| IP Geolocation Header | Cloudflare adds a `CF-IPCountry` HTTP header containing the country code that corresponds to the visitor. | All | | [Mirage](/speed/optimization/images/mirage/) | Turn on or off **Mirage**. | Pro and above | | [Opportunistic Encryption](/ssl/edge-certificates/additional-options/opportunistic-encryption/) | Turn on or off the **Opportunistic Encryption**.  | All | | [Origin Cache Control](/cache/concepts/cache-control/) | Origin Cache Control is enabled by default for Free, Pro, and Business domains and disabled by default for Enterprise domains. | All | | Origin Error Page Pass-thru | Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin. | Enterprise | | [Polish](/images/polish/) | Apply options from the **Polish** feature of the Cloudflare **Speed** app. | Pro and above | | [Query String Sort](/cache/advanced-configuration/query-string-sort/) | Turn on or off the reordering of query strings. When query strings have the same structure, caching improves. | Enterprise | -| [Resolve Override](/rules/page-rules/how-to/override-url-or-ip-address/) | Change the origin address to the value specified in this setting. | Enterprise | +| [Resolve Override](/rules/page-rules/how-to/override-url-or-ip-address/) | Change the origin address to the value specified in this setting. | Enterprise | | [Respect Strong ETags](/cache/reference/etag-headers/) | Turn on or off byte-for-byte equivalency checks between the Cloudflare cache and the origin server. | Enterprise | | Response Buffering | Turn on or off whether Cloudflare should wait for an entire file from the origin server before forwarding it to the site visitor. By default, Cloudflare sends packets to the client as they arrive from the origin server. | Enterprise | | [Rocket Loader](/speed/optimization/content/rocket-loader/) | Turn on or off **Rocket Loader** in the Cloudflare **Speed** app. | All | diff --git a/src/content/docs/rules/snippets/index.mdx b/src/content/docs/rules/snippets/index.mdx index c278b81cba5ea5e..1db2fff71e8f687 100644 --- a/src/content/docs/rules/snippets/index.mdx +++ b/src/content/docs/rules/snippets/index.mdx @@ -17,7 +17,10 @@ Cloudflare Snippets (beta) provide a powerful and flexible way to customize the For code samples addressing common use cases, please refer to the [Examples](/rules/snippets/examples/) section. - + ## Snippets elements diff --git a/src/content/docs/rules/transform/index.mdx b/src/content/docs/rules/transform/index.mdx index 537ae013bd79017..3d6d996f979754e 100644 --- a/src/content/docs/rules/transform/index.mdx +++ b/src/content/docs/rules/transform/index.mdx @@ -20,11 +20,14 @@ To configure Transform Rules in the dashboard, go to the **Transform Rules** pag
- + ## Get started @@ -66,7 +69,7 @@ Request and response fields are immutable within each [phase](/ruleset-engine/ab
diff --git a/src/content/docs/rules/transform/request-header-modification/create-api.mdx b/src/content/docs/rules/transform/request-header-modification/create-api.mdx index 305a40387a508de..3e104deae55d454 100644 --- a/src/content/docs/rules/transform/request-header-modification/create-api.mdx +++ b/src/content/docs/rules/transform/request-header-modification/create-api.mdx @@ -26,8 +26,8 @@ When creating an HTTP request header modification rule via API, make sure you: diff --git a/src/content/docs/rules/transform/request-header-modification/index.mdx b/src/content/docs/rules/transform/request-header-modification/index.mdx index 7711a90faeb449f..d7c3be21ad4e094 100644 --- a/src/content/docs/rules/transform/request-header-modification/index.mdx +++ b/src/content/docs/rules/transform/request-header-modification/index.mdx @@ -44,7 +44,7 @@ You can create an HTTP request header modification rule [in the dashboard](/rule ## Important remarks diff --git a/src/content/docs/rules/transform/response-header-modification/create-api.mdx b/src/content/docs/rules/transform/response-header-modification/create-api.mdx index d876356e429a92f..f9345306b3c5540 100644 --- a/src/content/docs/rules/transform/response-header-modification/create-api.mdx +++ b/src/content/docs/rules/transform/response-header-modification/create-api.mdx @@ -25,8 +25,8 @@ When creating an HTTP response header modification rule via API, make sure you: diff --git a/src/content/docs/rules/transform/response-header-modification/index.mdx b/src/content/docs/rules/transform/response-header-modification/index.mdx index 9ff03bafc2cf00f..1d48f54e4063ceb 100644 --- a/src/content/docs/rules/transform/response-header-modification/index.mdx +++ b/src/content/docs/rules/transform/response-header-modification/index.mdx @@ -45,7 +45,7 @@ You can create an HTTP response header modification rule [in the dashboard](/rul
diff --git a/src/content/docs/rules/transform/url-rewrite/create-api.mdx b/src/content/docs/rules/transform/url-rewrite/create-api.mdx index 99f21616b820a8f..be7427973b9b72f 100644 --- a/src/content/docs/rules/transform/url-rewrite/create-api.mdx +++ b/src/content/docs/rules/transform/url-rewrite/create-api.mdx @@ -24,7 +24,10 @@ When creating a rewrite URL rule via API, make sure you: Make sure your API token has the [required permissions](#required-api-token-permissions) to perform the API operations. diff --git a/src/content/docs/rules/transform/url-rewrite/index.mdx b/src/content/docs/rules/transform/url-rewrite/index.mdx index b719e1cf0453400..2dafc9c25d2719e 100644 --- a/src/content/docs/rules/transform/url-rewrite/index.mdx +++ b/src/content/docs/rules/transform/url-rewrite/index.mdx @@ -22,7 +22,7 @@ Use a URL rewrite to return the content of a URL while displaying a different UR You cannot rewrite the hostname using a rewrite URL rule. To rewrite the hostname, use an [origin rule](/rules/origin-rules/) or a [Page Rule](/rules/page-rules/how-to/override-url-or-ip-address/). - + ::: diff --git a/src/content/docs/rules/url-forwarding/bulk-redirects/create-api.mdx b/src/content/docs/rules/url-forwarding/bulk-redirects/create-api.mdx index 8e7ce054cfbf3a3..428ae57009f25f4 100644 --- a/src/content/docs/rules/url-forwarding/bulk-redirects/create-api.mdx +++ b/src/content/docs/rules/url-forwarding/bulk-redirects/create-api.mdx @@ -17,7 +17,7 @@ To create Bulk Redirects via API, you must: ## 1. Create a Bulk Redirect List via API diff --git a/src/content/docs/rules/url-forwarding/bulk-redirects/create-dashboard.mdx b/src/content/docs/rules/url-forwarding/bulk-redirects/create-dashboard.mdx index 622309ba11c7466..c268d4aaba2bf77 100644 --- a/src/content/docs/rules/url-forwarding/bulk-redirects/create-dashboard.mdx +++ b/src/content/docs/rules/url-forwarding/bulk-redirects/create-dashboard.mdx @@ -25,7 +25,7 @@ However, the lists and rules only exist at the account level and every zone in t ## 1. Create a Bulk Redirect List diff --git a/src/content/docs/rules/url-forwarding/bulk-redirects/index.mdx b/src/content/docs/rules/url-forwarding/bulk-redirects/index.mdx index 735dc0af6a35078..2223aa9d24f79da 100644 --- a/src/content/docs/rules/url-forwarding/bulk-redirects/index.mdx +++ b/src/content/docs/rules/url-forwarding/bulk-redirects/index.mdx @@ -16,7 +16,7 @@ Unlike dynamic URL redirects created in [Single Redirects](/rules/url-forwarding --- diff --git a/src/content/docs/rules/url-forwarding/index.mdx b/src/content/docs/rules/url-forwarding/index.mdx index 6bdf7e0f561e7aa..aa56420e65723c5 100644 --- a/src/content/docs/rules/url-forwarding/index.mdx +++ b/src/content/docs/rules/url-forwarding/index.mdx @@ -19,7 +19,7 @@ Use the following Cloudflare products to perform URL redirects, according to you ## Redirect Rules templates diff --git a/src/content/docs/rules/url-forwarding/single-redirects/create-api.mdx b/src/content/docs/rules/url-forwarding/single-redirects/create-api.mdx index 5f8668babcd8e4b..1c5fce2d3e15c79 100644 --- a/src/content/docs/rules/url-forwarding/single-redirects/create-api.mdx +++ b/src/content/docs/rules/url-forwarding/single-redirects/create-api.mdx @@ -14,7 +14,7 @@ Add redirect rules to the entry point ruleset of the `http_request_dynamic_redir ## Basic rule settings diff --git a/src/content/docs/rules/url-forwarding/single-redirects/create-dashboard.mdx b/src/content/docs/rules/url-forwarding/single-redirects/create-dashboard.mdx index f153fe4fd21ef81..eaff27413574d1b 100644 --- a/src/content/docs/rules/url-forwarding/single-redirects/create-dashboard.mdx +++ b/src/content/docs/rules/url-forwarding/single-redirects/create-dashboard.mdx @@ -30,5 +30,5 @@ import { Render } from "~/components"; diff --git a/src/content/docs/rules/url-forwarding/single-redirects/index.mdx b/src/content/docs/rules/url-forwarding/single-redirects/index.mdx index 7fdb5d096ef050f..64b13d06e30330a 100644 --- a/src/content/docs/rules/url-forwarding/single-redirects/index.mdx +++ b/src/content/docs/rules/url-forwarding/single-redirects/index.mdx @@ -14,7 +14,7 @@ Single Redirects allow you to create static or dynamic URL --- diff --git a/src/content/docs/waf/reference/cloudflare-challenges.mdx b/src/content/docs/waf/reference/cloudflare-challenges.mdx index 060fb0f0a528851..d50810ca29dff25 100644 --- a/src/content/docs/waf/reference/cloudflare-challenges.mdx +++ b/src/content/docs/waf/reference/cloudflare-challenges.mdx @@ -34,7 +34,7 @@ Depending on the characteristics of a request, Cloudflare will choose an appropr #### Available products @@ -143,10 +143,8 @@ The challenge page is an interstitial page and users will see it regardless of h ## Proxied hostnames - + + --- diff --git a/src/content/docs/web-analytics/configuration-options/rules.mdx b/src/content/docs/web-analytics/configuration-options/rules.mdx index 5353622013349f5..4ca01cd3ddd3f15 100644 --- a/src/content/docs/web-analytics/configuration-options/rules.mdx +++ b/src/content/docs/web-analytics/configuration-options/rules.mdx @@ -1,10 +1,9 @@ --- pcx_content_type: how-to title: Rules - --- -import { Render } from "~/components" +import { Render } from "~/components"; Use **Rules** to configure whether to track Web Analytics for specific websites or paths. By default, Web Analytics automatically creates a single rule for the zone that injects the JavaScript (JS) snippet for all pages. @@ -17,4 +16,4 @@ Rules are only available for sites proxied through Cloudflare. For more informat 5. Select the **Action** and fill in the hostname and path(s) you want to add a rule for. 6. If you want to add additional rules, select **Add rule**. Otherwise select **Update** to save the rule. - + diff --git a/src/content/partials/rules/challenge-issues.mdx b/src/content/partials/rules/challenge-issues.mdx index f0745f2a8d67956..cfef6ea96e23861 100644 --- a/src/content/partials/rules/challenge-issues.mdx +++ b/src/content/partials/rules/challenge-issues.mdx @@ -1,11 +1,8 @@ --- -inputParameters: featureName - +params: + - featureName --- -import { Markdown } from "~/components" - :::caution - -Using Cloudflare challenges along with {props.one} may cause challenge loops. Refer to [Rules troubleshooting](/rules/reference/troubleshooting/) for more information. +Using Cloudflare challenges along with {props.featureName} may cause challenge loops. Refer to [Rules troubleshooting](/rules/reference/troubleshooting/) for more information. ::: diff --git a/src/content/partials/rules/configuration-rule-wins-over-rum-rule.mdx b/src/content/partials/rules/configuration-rule-wins-over-rum-rule.mdx index d997b2eadf1b692..d0b170e18ee65e1 100644 --- a/src/content/partials/rules/configuration-rule-wins-over-rum-rule.mdx +++ b/src/content/partials/rules/configuration-rule-wins-over-rum-rule.mdx @@ -1,11 +1,7 @@ --- -inputParameters: configRulesReferenceOrLink;;rumRulesReferenceOrLink - +{} --- -import { Markdown } from "~/components" - :::caution[Warning] - -{props.one} have precedence over any {props.two}. If a Web Analytics rule turns on analytics measurements for an incoming request and the same request matches a configuration rule turning off Web Analytics, the configuration rule will win. +Configuration rules have precedence over any Web Analytics rules. If a Web Analytics rule turns on analytics measurements for an incoming request and the same request matches a configuration rule turning off Web Analytics, the configuration rule will win. ::: diff --git a/src/content/partials/rules/origin-rule-promotion.mdx b/src/content/partials/rules/origin-rule-promotion.mdx index 80dc1711ffb94b9..9e665479cc9b152 100644 --- a/src/content/partials/rules/origin-rule-promotion.mdx +++ b/src/content/partials/rules/origin-rule-promotion.mdx @@ -1,14 +1,8 @@ --- -inputParameters: originRuleUrl - +params: + - originRuleUrl --- -import { Markdown } from "~/components" - :::note - - -You can accomplish the same effect with an origin rule. - - +You can accomplish the same effect with an origin rule. ::: diff --git a/src/content/partials/rules/product-execution-order.mdx b/src/content/partials/rules/product-execution-order.mdx index 7913537dbec8d1f..e0483a4448a187e 100644 --- a/src/content/partials/rules/product-execution-order.mdx +++ b/src/content/partials/rules/product-execution-order.mdx @@ -1,21 +1,24 @@ --- {} - --- -import { Render } from "~/components" +import { Render } from "~/components"; The execution order of Rules features is the following: -* [Origin Rules](/rules/origin-rules/) -* [Cache Rules](/cache/how-to/cache-rules/) -* [Configuration Rules](/rules/configuration-rules/) -* [Single Redirects](/rules/url-forwarding/single-redirects/) -* [Bulk Redirects](/rules/url-forwarding/bulk-redirects/) -* [Snippets](/rules/snippets/) +- [Origin Rules](/rules/origin-rules/) +- [Cache Rules](/cache/how-to/cache-rules/) +- [Configuration Rules](/rules/configuration-rules/) +- [Single Redirects](/rules/url-forwarding/single-redirects/) +- [Bulk Redirects](/rules/url-forwarding/bulk-redirects/) +- [Snippets](/rules/snippets/) The different types of rules listed above will take precedence over [Page Rules](/rules/page-rules/). This means that Page Rules will be overridden if there is a match for both Page Rules and the Rules products listed above. - + diff --git a/src/content/partials/rules/rules-creation-workflow.mdx b/src/content/partials/rules/rules-creation-workflow.mdx index 0dd4ffd030a65ca..c5c10393f7fe7b5 100644 --- a/src/content/partials/rules/rules-creation-workflow.mdx +++ b/src/content/partials/rules/rules-creation-workflow.mdx @@ -1,17 +1,18 @@ --- -inputParameters: ruleName;;phaseName - +params: + - ruleName + - phaseName --- -import { Markdown } from "~/components" +import { Markdown } from "~/components"; -Follow this workflow to create {props.one} for a given zone via API: +Follow this workflow to create {props.ruleName} for a given zone via API: -1. Use the [List zone rulesets](/api/resources/rulesets/methods/list/) operation to check if there is already a ruleset for the {props.two} phase at the zone level. +1. Use the [List zone rulesets](/api/resources/rulesets/methods/list/) operation to check if there is already a ruleset for the {props.phaseName} phase at the zone level. 2. If the phase ruleset does not exist, create it using the [Create a zone ruleset](/api/resources/rulesets/methods/create/) operation. In the new ruleset properties, set the following values: - * **kind**: `zone` - * **phase**: {props.two} + - **kind**: `zone` + - **phase**: {props.phaseName} -3. Use the [Update a zone ruleset](/api/resources/rulesets/methods/update/) operation to add {props.one} to the list of ruleset rules. Alternatively, include the rule in the [Create a zone ruleset](/api/resources/rulesets/methods/create/) request mentioned in the previous step. +3. Use the [Update a zone ruleset](/api/resources/rulesets/methods/update/) operation to add {props.ruleName} to the list of ruleset rules. Alternatively, include the rule in the [Create a zone ruleset](/api/resources/rulesets/methods/create/) request mentioned in the previous step. diff --git a/src/content/partials/rules/rules-requirements.mdx b/src/content/partials/rules/rules-requirements.mdx index cb45ddcee4a2e06..651992f05782115 100644 --- a/src/content/partials/rules/rules-requirements.mdx +++ b/src/content/partials/rules/rules-requirements.mdx @@ -1,11 +1,11 @@ --- -inputParameters: sentenceIntro - +params: + - sentenceIntro --- -import { Markdown } from "~/components" +import { Markdown } from "~/components"; :::note -{props.one} that you [proxy the DNS records](/dns/proxy-status/) of your domain (or subdomain) through Cloudflare. +{props.sentenceIntro} that you [proxy the DNS records](/dns/proxy-status/) of your domain (or subdomain) through Cloudflare. ::: diff --git a/src/content/partials/rules/snippets-alternative.mdx b/src/content/partials/rules/snippets-alternative.mdx index 4de592f46f038a9..2ffa2934e4e5255 100644 --- a/src/content/partials/rules/snippets-alternative.mdx +++ b/src/content/partials/rules/snippets-alternative.mdx @@ -1,8 +1,6 @@ --- -{} - +params: + - suffix --- -import { Markdown } from "~/components" - -For more complex {props.one}, consider using [Snippets](/rules/snippets/). +For more complex {props.suffix}, consider using [Snippets](/rules/snippets/). diff --git a/src/content/partials/rules/url-forwarding/requires-proxied-site.mdx b/src/content/partials/rules/url-forwarding/requires-proxied-site.mdx index 4c634db7a7b3b82..b74c258a51c6d88 100644 --- a/src/content/partials/rules/url-forwarding/requires-proxied-site.mdx +++ b/src/content/partials/rules/url-forwarding/requires-proxied-site.mdx @@ -1,11 +1,8 @@ --- -inputParameters: forwardingRuleName - +params: + - forwardingRuleName --- -import { Markdown } from "~/components" - :::note - -{props.one} require that the incoming traffic for the hostname referenced in visitors' requests is [proxied by Cloudflare](/dns/proxy-status/). +{props.forwardingRuleName} require that the incoming traffic for the hostname referenced in visitors' requests is [proxied by Cloudflare](/dns/proxy-status/). :::