Simple Country Blocker is a WordPress plugin for restricting normal front-end page access based on the visitor's country, estimated from their IP address. Site owners choose the countries to block in the plugin settings.
The plugin is written for WordPress and PHP. The repository includes focused tests for country lookup, admin settings, and IP handling.
Country detection is an estimate and can be affected by VPNs or proxies. This plugin only checks normal WordPress front-end requests; it is not a firewall, and cached pages or requests handled outside WordPress may bypass it. IP addresses sent for lookup are processed by IPinfo, so site owners should review their privacy policy and the provider's terms.
Tags - WordPressPHPIP GeolocationAccess ControlIPinfo