Skip to main content

Country access policy (GeoIP)

Allow or deny requests by client country (GeoIP).

TypegeoBlock
CategorySecurity

Fields​

FieldTypeRequiredDefaultDescription
actionone of ALLOW, DENYyesALLOWALLOW = allowlist (only these countries pass); DENY = blocklist.
countrieslist of textyes—ISO 3166-1 alpha-2 codes, e.g. US, FR, DE.
allowUnknowntrue/falsenotrueWhen the country can't be resolved (no GeoIP database, private IP), allow the request. Off = block (fail-closed).
statusCodenumberno403HTTP status returned for a blocked request.
messagetextno—Response body for a blocked request.