Skip to main content

Country access policy (GeoIP)

Allow or deny requests by client country (GeoIP), with optional country-header enrichment for the backend.

TypegeoBlock
CategorySecurity

Fields

FieldTypeRequiredDefaultDescription
actionone of ALLOW, DENYyesALLOWALLOW = allowlist (only these countries pass); DENY = blocklist.
countrieslist of textyesISO 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).
addCountryHeadertextnoInject the resolved country to the backend under this header, e.g. X-Country-Code.
statusCodenumberno403HTTP status returned for a blocked request.
messagetextnoResponse body for a blocked request.