Skip to content

Commit 81ace67

Browse files
committed
Add dash-plus-api folder
1 parent df5d239 commit 81ace67

File tree

3 files changed

+3
-28
lines changed

3 files changed

+3
-28
lines changed

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -54,36 +54,11 @@ To get the UUIDs of your lists, use the [List Zero Trust lists](/api/resources/z
5454

5555
Block [security categories](/cloudflare-one/policies/gateway/domain-categories/#security-categories) such as Command & Control, Botnet and Malware based on Cloudflare's threat intelligence.
5656

57-
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
58-
5957
<Render
60-
file="gateway/policies/block-security-categories"
58+
file="gateway/policies/dash-plus-api/dns-block-security-categories"
6159
product="cloudflare-one"
6260
/>
6361

64-
</TabItem>
65-
66-
<TabItem label="API">
67-
68-
```bash
69-
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rule \
70-
--header "Content-Type: application/json" \
71-
--header "Authorization: Bearer <API_TOKEN>" \
72-
--data '{
73-
"name": "Block security threats",
74-
"description": "Block all default Cloudflare DNS security categories",
75-
"enabled": true,
76-
"action": "block",
77-
"filters": [
78-
"dns"
79-
],
80-
"traffic": "any(dns.security_category[*] in {68 178 80 83 176 175 117 131 134 151 153})",
81-
"identity": ""
82-
}'
83-
```
84-
85-
</TabItem> </Tabs>
86-
8762
## Block content categories
8863

8964
The categories included in this policy are not always a security threat, but blocking them can help minimize the risk that your organization is exposed to. For more information, refer to [domain categories](/cloudflare-one/policies/gateway/domain-categories/).

src/content/docs/learning-paths/secure-internet-traffic/build-dns-policies/recommended-dns-policies.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ resource "cloudflare_zero_trust_gateway_policy" "dns_restrict_quarantined_users"
140140
<Render file="zero-trust/blocklist-security-categories" />
141141

142142
<Render
143-
file="gateway/policies/block-security-categories-dash-plus-api"
143+
file="gateway/policies/dash-plus-api/dns-block-security-categories"
144144
product="cloudflare-one"
145145
/>
146146

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource "cloudflare_zero_trust_gateway_policy" "block_security_threats" {
3939
account_id = var.account_id
4040
name = "All-DNS-SecurityCategories-Blocklist"
4141
description = "Block all default Cloudflare DNS security categories"
42-
precednece = 20
42+
precedence = 20
4343
enabled = false
4444
action = "block"
4545
filters = ["dns"]

0 commit comments

Comments
 (0)