Country Access Blocker
Country Access Blocker lets you restrict or allow access to your WordPress site based on visitor countries. Features: * Block visitors from specific countries * Clean, GDPR-compliant country list * Easy admin interface to configure blocked countries * Enable or disable IP-based country blocking with
Country Access Blocker lets you restrict or allow access to your WordPress site based on visitor countries.
Features: * Block visitors from specific countries * Clean, GDPR-compliant country list * Easy admin interface to configure blocked countries * Enable or disable IP-based country blocking with one checkbox * No external dependencies or WooCommerce required * Uses ip-api.com free API for geolocation
This plugin is ideal if you want to restrict access from certain countries or comply with geo-based regulations.
License
This plugin is licensed under the GPLv2 or later.
Support
For support or bug reports, please open an issue on the plugin’s GitHub repository or contact the author.
- 01Upload the plugin files to the /wp-content/plugins/country-access-blocker directory, or install the plugin through the WordPress plugins screen directly.
- 02Activate the plugin through the ‘Plugins’ screen in WordPress.
- 03Go to the Country Blocker menu in the WordPress admin.
- 04Enable the checkbox for “Enable IP-based country blocking”.
- 05Select the countries you want to block.
- 06Click “Save settings”.
Frequently asked questions.
Does this plugin work without enabling IP-based blocking?
No. The plugin requires the IP check to be enabled to function. You must enable IP-based country blocking to use the plugin’s blocking features.
Which geolocation service does this plugin use?
It uses the free ip-api.com API to determine visitor countries based on their IP addresses.