Skip to content

Commit c715315

Browse files
authored
[WAF] Highlight lines in APIRequest calls (cloudflare#25027)
1 parent 5731835 commit c715315

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

src/content/docs/waf/custom-rules/create-api.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ The new rule, which will be the last rule in the ruleset, includes the definitio
7272
},
7373
},
7474
}}
75+
code={{
76+
mark: [{ range: "9-13" }],
77+
}}
7578
roles={false}
7679
/>
7780

src/content/docs/waf/managed-rules/payload-logging/configure-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ This example configures payload logging for the [Cloudflare Managed Ruleset](/wa
124124
expression: "true",
125125
}}
126126
code={{
127-
mark: [8, 9, 10],
127+
mark: [{ range: "8-10" }],
128128
}}
129129
roles={false}
130130
/>

src/content/docs/waf/managed-rules/reference/owasp-core-ruleset/configure-api.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ This example sets the Cloudflare OWASP Core Ruleset's paranoia level for a zone
138138
expression: "true",
139139
enabled: true,
140140
}}
141+
code={{
142+
mark: [{ range: "8-19" }],
143+
}}
141144
roles={false}
142145
/>
143146

@@ -297,6 +300,9 @@ This example configures the managed ruleset score threshold and the performed ac
297300
expression: "true",
298301
enabled: true,
299302
}}
303+
code={{
304+
mark: [{ range: "12-13" }],
305+
}}
300306
roles={false}
301307
/>
302308

src/content/docs/waf/rate-limiting-rules/create-api.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ The new rule defines a [custom response](/waf/rate-limiting-rules/create-zone-da
9191
mitigation_timeout: 600,
9292
},
9393
}}
94+
code={{
95+
mark: [{ range: "9-13" }],
96+
}}
9497
roles={false}
9598
/>
9699

@@ -121,6 +124,7 @@ The new rule does not consider requests for cached assets when calculating the r
121124
requests_to_origin: true,
122125
},
123126
}}
127+
code={{ mark: [17] }}
124128
roles={false}
125129
/>
126130

@@ -152,6 +156,9 @@ The new rule is a complexity-based rate limiting rule that takes the `my-score`
152156
counting_expression: "",
153157
},
154158
}}
159+
code={{
160+
mark: [{ range: "13-14" }],
161+
}}
155162
roles={false}
156163
/>
157164

0 commit comments

Comments
 (0)