You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Agent Blockingrules block specific browser or web application[`User-Agent`request headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent). These rules apply to the entire domain instead of individual subdomains.
11
+
User Agent Blockingrules block specific browser or web application[`User-Agent`request headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent). These rules apply to the entire domain instead of individual subdomains.
12
12
13
-
User Agent Blockingrules are applied after[Zone Lockdownrules](/waf/tools/zone-lockdown/). If you allow an IP address via Zone Lockdown, it will skip any User Agent Blocking rules.
13
+
User Agent Blockingrules are applied after[Zone Lockdownrules](/waf/tools/zone-lockdown/). If you allow an IP address via Zone Lockdown, it will skip any User Agent Blocking rules.
14
14
15
15
:::caution
16
16
@@ -43,30 +43,26 @@ Cloudflare User Agent Blocking is available on all plans. The number of availabl
43
43
44
44
5. In **Action**, select the action to perform: _Managed Challenge_, _Block_, _JS Challenge_, or _Interactive Challenge_.
45
45
46
-
6. Enter a user agent value in **User Agent** (wildcards such as `*` are not supported). For example,to block the Bad Bot web spider, enter `BadBot/1.0.2 (+http://bad.bot)`.
46
+
6. Enter a user agent value in **User Agent** (wildcards such as `*` are not supported). For example,to block the Bad Bot web spider, enter `BadBot/1.0.2 (+http://bad.bot)`.
47
47
48
48
7. Select **Save and Deploy blocking rule**.
49
49
50
50
</TabItem> <TabItemlabel="API">
51
51
52
-
Issue a `POST` request for the [Create a User Agent Blocking rule](/api/resources/firewall/subresources/ua_rules/methods/create/) operation.
Issue a `POST` request for the [Create a User Agent Blocking rule](/api/resources/firewall/subresources/ua_rules/methods/create/) operation similar to the following:
Zone Lockdown specifies a list of one or more IP addresses, CIDR ranges, or networks that are the only IPs allowed to access a domain, subdomain, or URL. You can configure multiple destinations, including IPv4/IPv6 addresses, in a single Zone Lockdown rule.
12
12
@@ -52,37 +52,31 @@ Cloudflare Zone Lockdown is available on paid plans. The number of available Zon
52
52
53
53
</TabItem> <TabItemlabel="API">
54
54
55
-
Issue a `POST` request for the [Create a Zone Lockdown rule](/api/resources/firewall/subresources/lockdowns/methods/create/) operation.
"description": "Block all traffic to staging and wiki unless it comes from HQ or branch offices",
66
-
"urls": [
67
-
"staging.example.com/*",
68
-
"example.com/wiki/*"
69
-
],
70
-
"configurations": [
71
-
{
72
-
"target": "ip_range",
73
-
"value": "192.0.2.0/24"
74
-
},
75
-
{
76
-
"target": "ip_range",
77
-
"value": "2001:DB8::/64"
78
-
},
79
-
{
80
-
"target": "ip",
81
-
"value": "203.0.133.1"
82
-
}
83
-
]
84
-
}'
85
-
```
55
+
Issue a `POST` request for the [Create a Zone Lockdown rule](/api/resources/firewall/subresources/lockdowns/methods/create/) operation similar to the following:
56
+
57
+
<APIRequest
58
+
path="/zones/{zone_id}/firewall/lockdowns"
59
+
method="POST"
60
+
json={{
61
+
description:
62
+
"Block all traffic to staging and wiki unless it comes from HQ or branch offices",
0 commit comments