This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.

Ansible: GeoIP Settings

Defined per installation, layered over the defaults in tocco/global.yml.

WordPress Variables

Variable

Default

Meaning

wp_geoip_restriction

true

Whether to enable geoIP restrictions at all

wp_geoip_allowed_countries

CH, DE, AT, FR, IT, LI

Country codes permitted

wp_geoip_allowed_ips

[]

Single IP addresses or IP ranges can be added in CIDR notation.

Openshift Variables

Variable

Default

Container variable

Meaning

geoIP_restriction

true

GEOIP_RESTRICTION_STATE

Whether to enable geoIP restrictions at all

geoip_allowed_countries

CH, DE, AT, FR, IT, LI

GEOIP_RESTRICTION_ALLOWED_COUNTRIES

Country codes permitted

geoip_allowed_ips

[]

GEOIP_RESTRICTION_ALLOWED_IPS

Single IP addresses or IP ranges can be added in CIDR notation.

Hint

Also apply the !merge flag when adding additional countries to the default.

wp_geoip_allowed_ips and geoip_allowed_ips are rarely used in practice. When someone abroad needs urgent access, the usual answer is to allow their whole country access temporarily rather than maintaining a list of addresses.

Also check GeoIP Service