Skip to content

Commit 98f2a91

Browse files
maxvpranbel
andauthored
[Gateway] DNS common policy API examples (#18903)
Co-authored-by: ranbel <[email protected]>
1 parent 41a82fb commit 98f2a91

File tree

9 files changed

+565
-145
lines changed

9 files changed

+565
-145
lines changed

src/content/docs/cloudflare-one/policies/gateway/dns-policies/common-policies.mdx

Lines changed: 521 additions & 23 deletions
Large diffs are not rendered by default.

src/content/docs/cloudflare-one/policies/gateway/http-policies/common-policies.mdx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ head:
88
content: Common HTTP policies
99
---
1010

11-
import { Render } from "~/components";
11+
import { Render, Tabs, TabItem } from "~/components";
1212

1313
The following policies are commonly used to secure HTTP traffic.
1414

@@ -36,9 +36,22 @@ Block a section of a site without blocking the entire site. For example, you can
3636

3737
<Render file="gateway/policies/content-categories" />
3838

39-
<Render file="gateway/policies/block-applications" />
39+
## Block unauthorized applications
4040

41-
<Render file="gateway/policies/policies-optional" />
41+
<Render file="gateway/policies/block-applications" product="cloudflare-one" />
42+
43+
| Selector | Operator | Value | Action |
44+
| ----------- | -------- | ------------------------- | ------ |
45+
| Application | in | _Artificial Intelligence_ | Block |
46+
47+
## Check user identity
48+
49+
<Render file="gateway/policies/check-user-identity" />
50+
51+
| Selector | Operator | Value | Logic | Action |
52+
| ---------------- | -------- | ------------- | ----- | ------ |
53+
| Application | in | _Salesforce_ | And | Block |
54+
| User Group Names | in | _Contractors_ | | |
4255

4356
## Skip inspection for groups of applications
4457

src/content/docs/cloudflare-one/policies/gateway/network-policies/common-policies.mdx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,28 @@ head:
88
content: Common network policies
99
---
1010

11-
import { Render } from "~/components";
11+
import { Render, Tabs, TabItem } from "~/components";
1212

1313
The following policies are commonly used to secure network traffic.
1414

1515
Refer to the [network policies page](/cloudflare-one/policies/gateway/network-policies/) for a comprehensive list of other selectors, operators, and actions.
1616

17-
<Render file="gateway/policies/block-applications" />
17+
## Block unauthorized applications
1818

19-
<Render file="gateway/policies/policies-optional" />
19+
<Render file="gateway/policies/block-applications" product="cloudflare-one" />
20+
21+
| Selector | Operator | Value | Action |
22+
| ----------- | -------- | ------------------------- | ------ |
23+
| Application | in | _Artificial Intelligence_ | Block |
24+
25+
## Check user identity
26+
27+
<Render file="gateway/policies/check-user-identity" />
28+
29+
| Selector | Operator | Value | Logic | Action |
30+
| ---------------- | -------- | ------------- | ----- | ------ |
31+
| Application | in | _Salesforce_ | And | Block |
32+
| User Group Names | in | _Contractors_ | | |
2033

2134
## Enforce device posture
2235

src/content/partials/cloudflare-one/gateway/get-started/create-dns-policy.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To create a new DNS policy:
3737
--header "Content-Type: application/json" \
3838
--header "Authorization: Bearer <API_TOKEN>" \
3939
--data '{
40-
"name": "Block security risks",
40+
"name": "Block security threats",
4141
"description": "Block all default Cloudflare DNS security categories",
4242
"precedence": 0,
4343
"enabled": true,
@@ -46,8 +46,7 @@ To create a new DNS policy:
4646
"dns"
4747
],
4848
"traffic": "any(dns.security_category[*] in {68 178 80 83 176 175 117 131 134 151 153})",
49-
"identity": "",
50-
"device_posture": ""
49+
"identity": ""
5150
}'
5251
```
5352

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
---
22
{}
3-
43
---
54

6-
import { GlossaryTooltip } from "~/components"
7-
8-
## Block unauthorized applications
9-
10-
To minimize the risk of <GlossaryTooltip term="shadow IT" link="https://www.cloudflare.com/learning/access-management/what-is-shadow-it/">shadow IT</GlossaryTooltip>, some organizations choose to limit their users' access to certain web-based tools and applications. For example, the following policy blocks AI assistants:
11-
12-
| Selector | Operator | Value | Action |
13-
| ----------- | -------- | ----------------------------------------------- | ------ |
14-
| Application | in | *Microsoft Copilot*, *ChatGPT*, *Google Gemini* | Block |
5+
import { GlossaryTooltip, Tabs, TabItem } from "~/components";
156

167
:::note
17-
18-
After seven days, view your [shadow IT analytics](/cloudflare-one/insights/analytics/access/) and block additional applications based on what your users are accessing.
8+
After seven days, view your [shadow IT analytics](/cloudflare-one/insights/analytics/access/) and block additional applications based on what your users are accessing.
199
:::
10+
11+
To minimize the risk of <GlossaryTooltip term="shadow IT" link="https://www.cloudflare.com/learning/access-management/what-is-shadow-it/">shadow IT</GlossaryTooltip>, some organizations choose to limit their users' access to certain web-based tools and applications. For example, the following policy blocks known AI tools:
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
{}
3-
43
---
54

65
| Selector | Operator | Value | Action |
76
| ------------------- | -------- | -------------------- | ------ |
8-
| Security Categories | in | *All security risks* | Block |
7+
| Security Categories | in | _All security risks_ | Block |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
{}
3+
---
4+
5+
Configure access on a per user or group basis by adding [identity-based conditions](/cloudflare-one/policies/gateway/identity-selectors/) to your policies.

src/content/partials/cloudflare-one/gateway/policies/policies-optional.mdx

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/content/partials/cloudflare-one/gateway/policies/recommended-dns-policies.mdx

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)