Skip to content

Commit 99c8482

Browse files
committed
[LP] Update custom rules page
1 parent 52775e0 commit 99c8482

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed
Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
---
2-
title: Custom Rules
2+
title: Custom rules
33
pcx_content_type: overview
44
sidebar:
55
order: 3
6-
76
---
87

9-
Cloudflare Rules allows you to make adjustments to requests and responses, configure Cloudflare settings, and trigger specific actions for matching requests. In addition, you can increase your security posture by including security headers to the browser or augmenting request headers with security intelligence. Cloudflare offers many ways to manipulate your traffic:
10-
11-
1. [**Transform Rules**](/rules/transform/) enable the modification of the URI path, query string, and HTTP headers for both requests and responses on its global network. This feature provides extensive control over HTTP traffic, allowing users to rewrite URLs, modify request and response headers, and apply common adjustments easily.
12-
13-
2. [**URL normalization rules**](/rules/normalization/) normalizes all requests before they pass to subsequent global network features that accept a URL input, such as WAF custom rules, Workers, and Access. Rule expressions that filter traffic based on URLs will therefore trigger correctly, regardless of the format of the incoming URL. When URL normalization is disabled, Cloudflare forwards the URL to origin in its original form.
14-
15-
3. [**Redirect rules**](/rules/url-forwarding/) navigates the user from a source URL to a target URL with a specific HTTP status code. This can be done using [single redirects](/rules/url-forwarding/single-redirects/) (per domain) or [bulk redirects](/rules/url-forwarding/bulk-redirects/) (per account).
8+
import { Render } from "~/components";
169

17-
4. [**Origin rules**](/rules/origin-rules/) allows you to customize where the incoming traffic will go and with which parameters. Currently you can perform the following overrides: host header, Server Name Indication, DNS record, and destination port.
10+
<Render file="custom-rules-intro" product="waf" />
1811

19-
5. [**Configuration rules**](/rules/configuration-rules/) allows you to customize certain Cloudflare configuration settings for matching incoming requests.
12+
The [custom rules documentation](/waf/custom-rules/) includes examples for common use cases.
2013

21-
6. [**Compression rules**](/rules/compression-rules/) allows you to customize the default behavior, which includes defining preferred compression algorithms for particular file types.
14+
## Skip rules
2215

23-
7. [**Snippets**](/rules/snippets/) provides a flexible way to customize the behavior of your website or application using short pieces of JavaScript code. Use snippets to customize HTTP response headers, implement JWT validation, define complex redirect functionality, and more.
16+
You can skip one or more Cloudflare security features using a custom rule [configured with the _Skip_ action](/waf/custom-rules/skip/). These rules are also known as skip rules. Refer to [Skip options](/waf/custom-rules/skip/options/) for more information on the features you can skip.

src/content/docs/waf/custom-rules/index.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ sidebar:
55
order: 5
66
---
77

8-
Custom rules allow you to control incoming traffic by filtering requests to a zone. You can perform actions like _Block_ or _Managed Challenge_ on incoming requests according to rules you define.
8+
import { Render } from "~/components";
99

10-
Like other rules evaluated by Cloudflare's [Ruleset Engine](/ruleset-engine/), custom rules have the following basic parameters:
11-
12-
- An [expression](/ruleset-engine/rules-language/expressions/) that specifies the criteria you are matching traffic on using the [Rules language](/ruleset-engine/rules-language/).
13-
- An [action](/ruleset-engine/rules-language/actions/) that specifies what to perform when there is a match for the rule.
10+
<Render file="custom-rules-intro" product="waf" />
1411

1512
Custom rules are evaluated in order, and some actions like _Block_ will stop the evaluation of other rules. For more details on actions and their behavior, refer to the [actions reference](/ruleset-engine/rules-language/actions/).
1613

src/content/docs/waf/custom-rules/skip/options.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
2-
title: Skip options
2+
title: Available skip options
33
pcx_content_type: reference
44
sidebar:
55
order: 4
6-
head:
7-
- tag: title
8-
content: Available skip options
6+
label: Skip options
97
---
108

119
The available skip options in custom rules are the following:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
{}
3+
---
4+
5+
Custom rules allow you to control incoming traffic by filtering requests to a zone. You can perform actions like _Block_ or _Managed Challenge_ on incoming requests according to rules you define.
6+
7+
Like other rules evaluated by Cloudflare's [Ruleset Engine](/ruleset-engine/), custom rules have the following basic parameters:
8+
9+
- An [expression](/ruleset-engine/rules-language/expressions/) that specifies the criteria you are matching traffic on using the [Rules language](/ruleset-engine/rules-language/).
10+
- An [action](/ruleset-engine/rules-language/actions/) that specifies what to perform when there is a match for the rule.

0 commit comments

Comments
 (0)