From bf9d6186bcacc1f23609895f02b64ddc3d4c6fac Mon Sep 17 00:00:00 2001 From: nenizera Date: Wed, 12 Mar 2025 12:59:24 +0000 Subject: [PATCH] [Rules]Update fields-functions.mdx You can't rewrite cdn-cgi https://gitlab.cfdata.org/cloudflare/ere/nginx-fl-rulesets/blob/main/src/filters/rewrite.lua#L239 --- .../transform/url-rewrite/reference/fields-functions.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/docs/rules/transform/url-rewrite/reference/fields-functions.mdx b/src/content/docs/rules/transform/url-rewrite/reference/fields-functions.mdx index e0770b369667fce..5a994edc856386a 100644 --- a/src/content/docs/rules/transform/url-rewrite/reference/fields-functions.mdx +++ b/src/content/docs/rules/transform/url-rewrite/reference/fields-functions.mdx @@ -29,3 +29,7 @@ A rewrite expression (that is, the expression that defines the dynamic URL rewri Refer to the [Fields reference](/ruleset-engine/rules-language/fields/reference/) for more information on these fields. The [`concat()`](/ruleset-engine/rules-language/functions/#concat), [`regex_replace()`](/ruleset-engine/rules-language/functions/#regex_replace), and [`wildcard_replace()`](/ruleset-engine/rules-language/functions/#wildcard_replace) functions can appear only **once** in a rewrite expression. + +:::note +For security reasons, its not possible to rewrite the [/cdn-cgi/ endpoint](/fundamentals/reference/cdn-cgi-endpoint/). +:::