The Country Block plugin for WordPress is a powerful, user-friendly tool that allows site owners to precisely control access to their website based on a visitor’s geographic location. It offers a free and reliable solution for blocking specific countries to reduce spam and malicious activity, or for restricting content to designated regions.
DOWNLOAD FROM WORDPRESS
โ Core Features for Precise Control
Explore the robust protection and flexibility built into Country Block. Control site access with precision and ease, ensuring guaranteed accuracy with daily updates.
- โฑ๏ธ Express Onboarding โ A guided wizard gets you up and running in minutes upon activation.
- ๐ Effortless Country Blocking โ Easily block or allow access from multiple countries or pre-defined groups like the European Union.
- ๐ High-Performance Geolocation โ Uses the high-performance, free MaxMind GeoLite2 Local Database for reliable country-level blocking.
- โ Guaranteed Accuracy โ The local MaxMind GeoLite2 database is updated automatically every day to ensure maximum accuracy.
- ๐ก๏ธ Flexible Whitelisting โ Exempt specific IP addresses/CIDR ranges, user roles, or URL paths from blocking rules.
- โ๏ธ Customizable Block Actions โ Show a customizable message (supports basic HTML) or redirect blocked visitors to a specific WordPress page.
- ๐ Real IP Detection โ Includes an advanced setting to ensure the visitor’s real IP address is always detected, even behind reverse proxy layers like Cloudflare, Varnish, and Nginx.
- ๐ Detailed Logging & Privacy โ Keep track of blocked requests (IP, country, reason) and includes an option to anonymize logged IP addresses for privacy.
Plugin Screenshots






๐ Powered by MaxMind
Country Block relies on the industry-standard MaxMind GeoLite2 Database to provide precise and fast country-level geolocation for access control
๐ 100% Free Service โ The plugin uses the MaxMind GeoLite2 Free-tier, meaning there are no per-query API limits or hidden costs for the geolocation service.
๐ High-Performance โ Utilizes a high-performance Local Database that is downloaded and run directly on your server for fast lookups
โ Guaranteed Accuracy โ The local MaxMind database is updated automatically every day to ensure maximum accuracy.
๐ง Easy Setup โ Requires a free MaxMind account to obtain a license key, which is used to download and maintain the database.
๐ง Who Country Block Is For
Country Block is perfect for site owners who need robust, reliable, and precise geographical access control with zero complexity.
๐ Protecting Content โ Course & membership sites or publishers safeguarding premium content to ensure it is only accessible in approved regions.
๐๏ธ E-commerce Stores โ WooCommerce sites enforcing geo-compliance or restricting access based on shipping or payment zones.
๐ฐ Targeted Publishing โ Publishers and bloggers fighting malicious activity by blocking traffic from specific countries to ensure content is only accessible in designated regions.
๐ก๏ธ Security Focused Admins โ Site owners looking to reduce spam and malicious activity by blocking high-risk countries at the IP level.
F.A.Q
1. Is Country Block a free plugin?
Yes, Country Block provides incredible value for free. It uses the MaxMind GeoLite2 Free-tier database, meaning there are no per-query API limits or hidden costs for the geolocation service.
2. How do I get the MaxMind License Key?
You need a free MaxMind GeoLite2 account. You must sign up on MaxMind’s website, log in, and generate a new license key to paste into the plugin’s settings.
3. What about blocking VPNs, Proxies, or TOR users?
Country Block is for geographical access control (blocking by country). For an additional layer of security and anonymity control, you should check out the companion plugin: VPN Guard.
4. Will this plugin conflict with my caching tools like Cloudflare or WP Rocket?
No. Country Block is built for maximum compatibility. It works smoothly with reverse proxies and caching plugins, though whitelisting your caching service’s IP addresses may be necessary in some aggressive setups.
5. Which Geolocation Source should I choose?
The Local Database (GeoLite2) is recommended for all users as it is fast, free, and provides reliable country-level blocking.
๐ Disclaimer
Country Block is not affiliated, associated, authorized, endorsed by, or in any way officially connected with MaxMind or any of its subsidiaries, including vpndeals.com.
MaxMind (GeoLite2 Database) is a third-party service this plugin integrates with to download the local geolocation database. Users are required to obtain a free MaxMind GeoLite2 account to generate a license key for database updates. Any terms of use or privacy policies related to the database are managed solely by MaxMind. Country Block does not charge for or profit from this service.
๐ฌ Need Help? We’re Here.
Got questions or feedback? You can also reach out via our support page anytime. We’re always improving and listening to user ideas.
