Skip to content

Commit 78c7db3

Browse files
[Rules] New create DNS record pop-up (#20276)
--------- Co-authored-by: marciocloudflare <[email protected]>
1 parent 652d3e5 commit 78c7db3

File tree

14 files changed

+62
-11
lines changed

14 files changed

+62
-11
lines changed

src/content/docs/cache/how-to/cache-rules/create-dashboard.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Create a cache rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
1214
2. Go to **Rules** > **Overview**.
1315
3. Next to **Cache Rules**, select **Create rule**.
@@ -41,3 +43,5 @@ head:
4143
11. Under **Place at**, from the dropdown, you can select the order of your rule. From the main page, you can also change the order of the rules you have created.
4244

4345
12. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
46+
47+
<Render file="rules-creation-dash-dns-popup" product="rules" />

src/content/docs/rules/cloud-connector/create-dashboard.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Configure a Cloud Connector rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
To configure a Cloud Connector rule in the dashboard:
1214

1315
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
@@ -34,4 +36,6 @@ To configure a Cloud Connector rule in the dashboard:
3436

3537
Alternatively, select **All incoming requests** to redirect all incoming traffic for your zone to the storage bucket you selected.
3638

37-
To save and deploy your rule, select **Deploy**. If you are not ready to deploy the rule, select **Save as Draft**.
39+
7. To save and deploy your rule, select **Deploy**. If you are not ready to deploy the rule, select **Save as Draft**.
40+
41+
<Render file="rules-creation-dash-dns-popup" />

src/content/docs/rules/compression-rules/create-dashboard.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Create a compression rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
1214
2. Go to **Rules** > **Overview**.
1315
3. Select **Create rule** > **Compression Rule**.
@@ -17,3 +19,5 @@ head:
1719
7. (Optional) To define a custom expression, use the Expression Builder (specifying one or more values for **Field**, **Operator**, and **Value**) or manually enter an expression using the Expression Editor. For more information, refer to [Edit rule expressions](/ruleset-engine/rules-language/expressions/edit-expressions/).
1820
8. Under **Compression options**, set the [compression options](/rules/compression-rules/settings/#dashboard-configuration-settings).
1921
9. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
22+
23+
<Render file="rules-creation-dash-dns-popup" />

src/content/docs/rules/configuration-rules/create-dashboard.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Create a configuration rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
1214
2. Go to **Rules** > **Overview**.
1315
3. Select **Create rule** > **Configuration Rule**.
@@ -17,3 +19,5 @@ head:
1719
7. (Optional) To define a custom expression, use the Expression Builder (specifying one or more values for **Field**, **Operator**, and **Value**) or manually enter an expression using the Expression Editor. For more information, refer to [Edit expressions in the dashboard](/ruleset-engine/rules-language/expressions/edit-expressions/).
1820
8. Under **Then the settings are**, add the [configuration settings](/rules/configuration-rules/settings/) you wish to change for requests matching the rule expression.
1921
9. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
22+
23+
<Render file="rules-creation-dash-dns-popup" />

src/content/docs/rules/origin-rules/create-dashboard.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Create an origin rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
1214
2. Go to **Rules** > **Overview**.
1315
3. Select **Create rule** > **Origin Rule**.
@@ -16,3 +18,5 @@ head:
1618
6. Under **When incoming requests match**, define the [rule expression](/ruleset-engine/rules-language/expressions/edit-expressions/).
1719
7. Under **Set origin parameters**, define the [origin rule settings](/rules/origin-rules/features/) you wish to change for requests matching the rule expression.
1820
8. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
21+
22+
<Render file="rules-creation-dash-dns-popup" />

src/content/docs/rules/page-rules/manage.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ You can manage Page Rules in the Cloudflare dashboard or via API.
2121
To create a page rule in the dashboard:
2222

2323
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
24-
2. Go to **Rules** > **Page Rules**.
24+
2. Go to **Rules** > **Page Rules**.
2525
3. Select **Create Page Rule**.
2626
4. For **URL**, enter the URL or URL pattern that should match the rule ([more details about wildcard matching](/rules/page-rules/reference/wildcard-matching/)).
2727
5. For **Pick a Setting**, select a [Cloudflare setting](/rules/page-rules/reference/settings/) to adjust. If desired, select **Add a Setting** to adjust multiple Cloudflare settings with the same rule.
28-
6. In the **Order** dropdown, specify the desired order: *First, Last* or *Custom*.
29-
7. To save, select one of the following options:
28+
6. In the **Order** dropdown, specify the desired order: _First, Last_ or _Custom_.
29+
7. To save and deploy your rule, select **Save and Deploy Page Rule**. If you are not ready to deploy your rule, select **Save as Draft**.
3030

31-
- **Save as Draft** to save the rule and leave it disabled.
32-
- **Save and Deploy Page Rule** to save the rule and enable it immediately.
31+
<Render file="rules-creation-dash-dns-popup" />
3332

3433
For ideas about what rules you can create, refer to [recommended rules](/rules/page-rules/reference/recommended-rules/).
3534

@@ -55,7 +54,7 @@ You may also want to review the documentation on [wildcard matching](/rules/page
5554
To edit a page rule in the dashboard:
5655

5756
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
58-
2. Go to **Rules** > **Page Rules**.
57+
2. Go to **Rules** > **Page Rules**.
5958
3. For a specific rule:
6059

6160
- To enable or disable the rule, select the on/off toggle.
@@ -76,7 +75,7 @@ To entirely replace the configuration of a page rule, send a [`PUT` request](/ap
7675
To delete a page rule in the dashboard:
7776

7877
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
79-
2. Go to **Rules** > **Page Rules**.
78+
2. Go to **Rules** > **Page Rules**.
8079
3. For a specific rule, select **X**. Then, select **Delete**.
8180

8281
</TabItem> <TabItem label="API">

src/content/docs/rules/reference/troubleshooting.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ If you are using [HTTP DCV](/ssl/edge-certificates/changing-dcv-method/methods/h
3131

3232
Cloudflare may remove the `Content-Length` header from responses delivered to website visitors. If the visitor must receive the `Content-Length` header, configure the origin server to include a `cache-control: no-transform` HTTP header in the response.
3333

34+
## This rule may not apply to your traffic
35+
36+
If your rule expression is matching a hostname for which you have neither created a DNS record nor enabled proxying traffic through Cloudflare, you will get a pop-up window with a couple of options:
37+
38+
- **If no DNS record exists for the hostname**: Whether to proceed with the rule creation or to create a new proxied DNS record for that hostname.
39+
- **If there is a DNS record for the hostname, but traffic is not being proxied**: Whether to proceed with the rule creation or to enable proxying for the existing DNS record.
40+
41+
If you choose to create a new DNS record, the new record will have a `rules` tag and the following associated comment:
42+
43+
```txt
44+
Created during Cloudflare Rules deployment process for <RULE_NAME>
45+
```
46+
3447
## URL rewrites affect other Rules features executed later
3548

3649
If you rewrite a URI path using a [URL rewrite](/rules/transform/url-rewrite/), this may affect other Rules features executed later — such as [Origin Rules](/rules/origin-rules/) — if they include the URI path in their filter expression.

src/content/docs/rules/snippets/create-dashboard.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ head:
99
content: Create a snippet in the dashboard
1010
---
1111

12+
import { Render } from "~/components";
13+
1214
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and website.
1315

1416
2. Go to **Rules** > **Snippets**, and select **Create a Snippet**.
@@ -26,3 +28,5 @@ head:
2628
8. Select **Done**.
2729

2830
9. To deploy your snippet, select **Deploy**. If you are not ready to deploy your snippet, open the dropdown next to **Deploy** and select **Save as Draft**.
31+
32+
<Render file="rules-creation-dash-dns-popup" />

src/content/docs/rules/transform/request-header-modification/create-dashboard.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Create an HTTP request header modification rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
Refer to the [Rules examples gallery](/rules/transform/examples/?operation=Request+modification) for examples of rule definitions.
1214

1315
To create a rule:
@@ -46,4 +48,4 @@ To create a rule:
4648

4749
11. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
4850

49-
If you choose to deploy your HTTP request header modification rule, the new rule will be enabled. If you save the rule as a draft, the new rule will be disabled.
51+
<Render file="rules-creation-dash-dns-popup" />

src/content/docs/rules/transform/response-header-modification/create-dashboard.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ head:
88
content: Create an HTTP response header modification rule in the dashboard
99
---
1010

11+
import { Render } from "~/components";
12+
1113
Refer to the [Rules examples gallery](/rules/transform/examples/?operation=Response+modification) for examples of rule definitions.
1214

1315
To create a rule:
@@ -47,4 +49,4 @@ To create a rule:
4749

4850
11. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
4951

50-
If you choose to deploy your HTTP response header modification rule, the new rule will be enabled. If you save the rule as a draft, the new rule will be disabled.
52+
<Render file="rules-creation-dash-dns-popup" />

0 commit comments

Comments
 (0)