WPF2B_EVENT_BLOCK_COUNTRY_UNKNOWN

Access denied because the country could not be resolved.

Premium only

Premium listener: WPF2B_EVENT_BLOCK_COUNTRY_UNKNOWN.

Premium emits this event when WP_FAIL2BAN_EX_GEOLOCATION_FAIL makes country blocking fail closed and the request’s country cannot be resolved. The request is denied with HTTP 403.

This event records an unresolved country, not a known country on the HTTP 403 or 451 list. Those denials use WPF2B_EVENT_BLOCK_COUNTRY or WPF2B_EVENT_BLOCK_COUNTRY_451.

syslog

Facility

WP_FAIL2BAN_EX_BLOCK_COUNTRIES_LOG

Level

NOTICE

Example

Blocked access 403 from unknown country on fqdn.example.com from 192.0.42.1

fail2ban

Filter

wordpress-hard.conf

Rule

Blocked access <F-HTTP_STATUS>\d\d\d</F-HTTP_STATUS> from unknown country<_tail>

EventData

country

unset (no ISO code was resolved)

History

Added in version 6.3.0.