Skip to content

Commit 7a95c91

Browse files
authored
[Custom Rules] Update block-by-geographical-location.mdx (#24219)
1 parent 8b3f6b6 commit 7a95c91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/docs/waf/custom-rules/use-cases/block-by-geographical-location.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ pcx_content_type: configuration
33
title: Block traffic by geographical location
44
---
55

6-
This example custom rule blocks requests by autonomous system number (ASN), continent, or country of origin.
6+
This example custom rule blocks requests by autonomous system number (ASN), continent, country of origin, or region.
77

8-
- **Expression**: `(ip.src.asnum eq 131279) or (ip.src.continent eq "AS") or (ip.src.country eq "KP")`
8+
- **Expression**: `(ip.src.asnum eq 131279) or (ip.src.continent eq "AS") or (ip.src.country eq "KP") or (ip.src.region_code eq "CA")`
99
- **Action**: _Block_
1010

1111
## Other resources
1212

1313
- [Use case: Block traffic from specific countries](/waf/custom-rules/use-cases/block-traffic-from-specific-countries/)
1414
- [Use case: Allow traffic from specific countries only](/waf/custom-rules/use-cases/allow-traffic-from-specific-countries/)
15+
- [Fields reference: Geolocation](/ruleset-engine/rules-language/fields/reference/?field-category=Geolocation)

0 commit comments

Comments
 (0)