Skip to content

Commit 0d1ea61

Browse files
committed
Update API call
1 parent f7010a5 commit 0d1ea61

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

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

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

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

@@ -78,7 +78,7 @@ You can add a list of category IDs to the [EDNS header](https://datatracker.ietf
7878
}
7979
```
8080

81-
With the [Request Context Categories](/cloudflare-one/policies/gateway/dns-policies/#request-context-categories) selector, you can block the category IDs sent with EDNS. This is useful to filter by categories not known at the time of creating a policy, or to enforce device-specific DNS content filtering without reaching your account limit. When Gateway uses this selector to block a DNS query, Gateway will return an Extended DNS Error (EDE) Code 15 - Blocked error, along with a field containing an array of the matched categories.
81+
With the [Request Context Categories](/cloudflare-one/policies/gateway/dns-policies/#request-context-categories) selector, you can block the category IDs sent with EDNS. This is useful to filter by categories not known at the time of creating a policy, or to enforce device-specific DNS content filtering without reaching your account limit. When Gateway uses this selector to block a DNS query, the request will return an Extended DNS Error (EDE) Code 15 - Blocked error, along with a field containing an array of the matched categories.
8282

8383
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
8484

@@ -95,8 +95,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rule \
9595
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
9696
--data '{
9797
"name": "All-DNS-Bock-Category-Matches-In-Request",
98-
"description": "Block all category matches in the requet edns context",
99-
"precedence": 30,
98+
"description": "Block all category matches in the request EDNS context",
10099
"enabled": true,
101100
"action": "block",
102101
"filters": [
@@ -114,7 +113,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rule \
114113
resource "cloudflare_zero_trust_gateway_policy" "block_content_categories" {
115114
account_id = var.cloudflare_account_id
116115
name = "All-DNS-Bock-Category-Matches-In-Request"
117-
description = "Block all category matches in the requet edns context"
116+
description = "Block all category matches in the request EDNS context"
118117
enabled = true
119118
action = "block"
120119
filters = ["dns"]

0 commit comments

Comments
 (0)