Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/content/docs/waf/custom-rules/create-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ The new rule, which will be the last rule in the ruleset, includes the definitio
},
},
}}
code={{
mark: [{ range: "9-13" }],
}}
roles={false}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ This example configures payload logging for the [Cloudflare Managed Ruleset](/wa
expression: "true",
}}
code={{
mark: [8, 9, 10],
mark: [{ range: "8-10" }],
}}
roles={false}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ This example sets the Cloudflare OWASP Core Ruleset's paranoia level for a zone
expression: "true",
enabled: true,
}}
code={{
mark: [{ range: "8-19" }],
}}
roles={false}
/>

Expand Down Expand Up @@ -297,6 +300,9 @@ This example configures the managed ruleset score threshold and the performed ac
expression: "true",
enabled: true,
}}
code={{
mark: [{ range: "12-13" }],
}}
roles={false}
/>

Expand Down
7 changes: 7 additions & 0 deletions src/content/docs/waf/rate-limiting-rules/create-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ The new rule defines a [custom response](/waf/rate-limiting-rules/create-zone-da
mitigation_timeout: 600,
},
}}
code={{
mark: [{ range: "9-13" }],
}}
roles={false}
/>

Expand Down Expand Up @@ -121,6 +124,7 @@ The new rule does not consider requests for cached assets when calculating the r
requests_to_origin: true,
},
}}
code={{ mark: [17] }}
roles={false}
/>

Expand Down Expand Up @@ -152,6 +156,9 @@ The new rule is a complexity-based rate limiting rule that takes the `my-score`
counting_expression: "",
},
}}
code={{
mark: [{ range: "13-14" }],
}}
roles={false}
/>

Expand Down