Block Account Create / Login By Country – GRC Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
This plugin blocks login and account creation based on the user’s country, determined via IP geolocation.
It applies globally to all users and roles, including WooCommerce customers, and works for:
- WordPress login
- WordPress registration
- WooCommerce login
- WooCommerce registration
The country where the plugin is first activated is automatically excluded from blocking to prevent lockout.
Features:
- Blocks login attempts from selected countries (WP + WooCommerce).
- Blocks account creation / registration from selected countries.
- Country-based blocking applies to all roles, not just admins.
- Installer’s country is never blocked (fail-safe).
- Optional hard deny via 404 response (stealth mode).
- Settings page with multi-select country list.
- Dynamic country list fetched from a public API.
- Lightweight, no database tables, no cron jobs.
Powered by ipinfo.io for IP geolocation.
External Services
This plugin relies on the following external services:
1. ipinfo.io
Purpose:
- Determines the country of the user’s IP address during login or registration.
Data sent:
- User IP address, sent at the moment of login or registration.
Provider:
- Website: https://ipinfo.io
- Terms: https://ipinfo.io/terms
- Privacy: https://ipinfo.io/privacy-policy
2. restcountries.com
Purpose:
- Fetches a list of country codes and names for the settings page.
Data sent:
- No personal data. Public GET request only.
Provider:
- Website: https://restcountries.com
- API Docs: https://restcountries.com/#api-endpoints-v3-all
License
GPLv2 or later
https://www.gnu.org/licenses/gpl-2.0.html
Screenshots
No screenshots provided
