BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Country Block – Ultimate Geo-Blocker, IP Ban & Login Security icon
Actively maintained Tested up to 6.9.10 #3 in ban

Country Block – Ultimate Geo-Blocker, IP Ban & Login Security

Block or allow access by country using a local MaxMind GeoLite2 database, with IP, user role, and URL exceptions.

Active installs100+100+ tier
Downloads · 30d314▲ +32.5% vs prev. 30d
Rating4.2/55 reviews
Health score61/100Fair
All-time downloads1.7KSince Oct 2025
Support resolved—No recent threads
RequiresWP 5.8PHP 7.4+
Downloads · 7d52▼ -13.3% week over week
Our verdict

Use with caution

Country Block works, but test it on a staging site before relying on it in 2026. It runs on 100+ sites, is rated 4.2/5 and was last updated 1 month ago, and scores 61/100 on our health check.

  • Small user base (100+ active installs)
  • Only tested up to WordPress 6.9 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

142943Jul 11Aug 24Oct 8
Yesterday8
Daily average (1y)5
Peak day58Sep 7, 2026
Last 12 months1.7K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Country Block stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
ban #14 375 Best ban plugins →
block >100 10,000 Best block plugins →
country #34 4,554 Best country plugins →
geo #52 1,112 Best geo plugins →
security >100 10,000 Best security plugins →

Version adoption

Share of active sites per release.

  • 1.0100.0%

Rating breakdown

★★★★★★★★★★ 4.2 from 5 reviews

  • 5★80.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★20.0%

About Country Block

From the official readme · v1.0.3

Description

Country Block provides an exceptionally user-friendly, powerful, and modern IP geolocation blocking experience for WordPress. Our mission is to offer incredible value for free, helping you secure your website and control access with precision and ease.

Whether you want to block traffic from specific countries to reduce spam and malicious activity, or ensure your content is only accessible to visitors from designated regions, Country Block offers a flexible and robust solution.

Core Features:

  • Effortless Country Blocking: Easily block or allow access from multiple countries or pre-defined groups like the European Union.
  • Visitor IP Detection: Uses the connection IP by default. A trusted proxy header can be selected for Cloudflare, Varnish, or Nginx when the host securely configures that header and protects direct origin access.
  • Express Onboarding Setup: A guided wizard gets you up and running in minutes upon activation.
  • Modern “2030 Era” UI: Enjoy an intuitive, clean, and responsive admin interface that’s a pleasure to use.
  • Flexible Geolocation Source:
    • Free Local Database (GeoLite2 by MaxMind): High-performance, reliable country-level blocking using a local MaxMind GeoLite2 database, updated automatically every day to ensure maximum accuracy. Requires a free MaxMind account for database updates.
  • Whitelisting: Exempt specific IP addresses/CIDR ranges, user roles, or URL paths from blocking rules.
  • Author Credit: The footer credit is enabled by default on new installations of this website-distributed build. Existing saved preferences are preserved when updating.
  • Customizable Block Actions:
    • Show a customizable message (supports basic HTML).
    • Redirect blocked visitors to a specific WordPress page.
  • Detailed Logging & Statistics (Opt-in):
    • Keep track of blocked requests (IP, country, reason, timestamp).
    • View statistics on blocked activity.
    • Option to anonymize logged IPs for privacy.

Looking to block VPNs, Proxies, or TOR users? For an additional layer of security and anonymity control, check out our companion plugin: VPN Guard!

External Services

Country lookups use the local database and do not send visitor IP addresses to MaxMind. Database downloads contact MaxMind from your server and send your license key.

  • MaxMind (GeoLite2 Database)
    • Purpose: Used to download the local geolocation database.
    • Data Sent: Your MaxMind License Key is sent to download the database.
    • Links: Terms of Use | Privacy Policy

Installation

  1. Download the plugin ZIP from the VPNDeals website.
  2. In your WordPress admin panel, go to Plugins > Add New > Upload Plugin.
  3. Select the ZIP, click “Install Now”, and then “Activate”.
  4. Follow the Express Onboarding wizard. The author credit starts enabled on new installations.

Frequently asked questions

How do I get a MaxMind License Key?

You need a free MaxMind GeoLite2 account. 1. Sign up at MaxMind’s GeoLite2 Sign Up Page. 2. Log in and navigate to “Manage License Keys”. 3. Generate a new license key. 4. Copy the key and paste it into the Country Block settings. NOTE: If your key shows as invalid immediately after creation, please wait 5 minutes and try the database download again, as activation takes a moment to propagate on MaxMind’s side.

Which Geolocation Source should I choose?

Local Database (GeoLite2): Recommended for all users. It’s fast, free, and provides reliable country-level blocking.

Is it compatible with caching plugins?

Country Block checks requests that reach WordPress. A CDN, server cache, or advanced-cache.php can serve pages before plugins run. With country rules enabled, this plugin sets DONOTCACHEPAGE and sends no-cache headers for requests it handles, but it cannot intercept existing upstream cache hits. Purge existing caches and bypass page caching for protected URLs, or apply matching country rules at your CDN. Test while logged out from both a blocked and an allowed location.

Changelog

Fixes PHP 7.4/8.0 activation, settings persistence, proxy header trust, and redirect exemptions. For proxy sites, confirm the Trusted IP Header setting with your host. The old automatically added redirect-path whitelist entry is removed on upgrade; the redirect page now has an exact URL exception. Purge page/CDN caches after updating.

1.0.3

  • Restore PHP 7.4-compatible bundled dependencies and pin Composer’s build platform.
  • Enable the author credit by default on fresh installations of the website-distributed build, preserving existing saved preferences.
  • Preserve license keys, database update metadata, and unrelated options during AJAX and partial updates.
  • Prevent the footer credit action from resetting blocking rules.
  • Use one database download handler during onboarding.
  • Trust only the configured visitor IP header, falling back to REMOTE_ADDR.
  • Match redirect pages by path and query; fix plain-permalink exemptions and migrate old generated whitelist entries.
  • Validate IPv4/IPv6 CIDR ranges and match a whitelisted directory itself.
  • Validate database downloads before replacement, serialize updates, and invalidate country caches after updates.
  • Preserve HTML messages and anonymization on import; honor individual log-field preferences and escape CSV formula cells.
  • Add database readiness diagnostics and document full-page cache limitations.
  • Protect onboarding state changes with capability and nonce checks.

1.0.2

  • Compatibility: Full support verified for WordPress 6.9.1 and PHP 8.3+.
  • Security: Hardened internal access checks to prevent unauthorized settings modifications.

1.0.1

  • Redirect Loop Fix: Implemented a more robust method to prevent infinite redirect loops when blocking traffic and using the ‘Redirect to a WordPress page’ action. The redirect target is now automatically whitelisted by URL path.

1.0.0

  • Initial public release.

Full changelog on WordPress.org →

Screenshots

Onboarding Wizard - Geolocation Source Step
Onboarding Wizard - Geolocation Source Step
Main Settings Tab (Blocking Mode and Block Actions)
Main Settings Tab (Blocking Mode and Block Actions)
Whitelisting Rules Tab (IPs, Roles, and URL Path Exclusions)
Whitelisting Rules Tab (IPs, Roles, and URL Path Exclusions)
Tools & Logs Tab (Activity Logging and Block Log Table)
Tools & Logs Tab (Activity Logging and Block Log Table)
Help & System Info Tab (FAQ and System Diagnostics)
Help & System Info Tab (FAQ and System Diagnostics)

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Country Block alternatives

All ban plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WP-Ban WP-Ban Ban users by IP, IP range, host name, user agent and referrer URL from visiting your… by Lester Chan 8K+ ★★★★★★★★★★ 3.7 (27) 2 months ago 74
2 Banhammer – Monitor Site Traffic, Block Bad Users and Bots Banhammer – Monitor Site Traffic, Block Bad Users and Bots Monitor traffic and ban unwanted visitors. Block any user or IP address so they can't… by Jeff Starr 1K+ ★★★★★★★★★★ 4.4 (19) 2 months ago 65
4 IP Ban IP Ban Returns 'Page Not Found' 404 error message for IP's visiting your blog specified in the IP… by w3prodigy 80+ ★★★★★★★★★★ No reviews 16 years ago 25
5 Admin Country Allowlist Admin Country Allowlist By far the simplest country allowlist plugin available. Locks admin panel and XMLRPC access… by Ric 80+ ★★★★★★★★★★ No reviews 2 months ago 64
6 Wp Restricted Wp Restricted wp admin ban for all ip except one ip . by Navdeep 40+ ★★★★★★★★★★ No reviews 8 years ago 24
7 Spam Check for Asgaros Spam Check for Asgaros A simple and configurable spam filter for the Asgaros Forum plugin. Automatically detects… by guidve 30+ ★★★★★★★★★★ No reviews 1 year ago 33
8 bad_ip WP bad_ip WP Lightweight WordPress firewall plugin to block malicious IPs, TOR nodes, and brute-force… by Iridium Intelligence 20+ ★★★★★★★★★★ 5 (1) 1 year ago 40
9 Automatic Ban IP Automatic Ban IP Block IP addresses which are suspicious and try to post on your blog spam comments. by KaizenCoders 20+ ★★★★★★★★★★ 5 (2) 10 years ago 31
10 crawler-hunter crawler-hunter It is a simple but effective plugin. Stops spam bots by checking browser content. You can… by naimgr83 10+ ★★★★★★★★★★ 4.5 (2) 1 year ago 38
11 Ban Subdomain Emails Ban Subdomain Emails Prevent people from registering with emails that contain a subdomain to help reduce spam. by jamiechong 10+ ★★★★★★★★★★ 5 (1) 10 years ago 30

FAQ

Country Block: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Oct 9, 2026

Is Country Block free?

Yes. Country Block is free to download and use from the official WordPress.org plugin directory.

Is Country Block safe to use in 2026?

Country Block works, but test it on a staging site before relying on it in 2026. It runs on 100+ sites, is rated 4.2/5 and was last updated 1 month ago, and scores 61/100 on our health check.

How many websites use Country Block?

Country Block is active on 100+ WordPress websites and has been downloaded 1,673 times since it launched in October 2025. It was downloaded 314 times in the last 30 days.

Does Country Block work with WordPress 7.1?

Country Block is officially tested up to WordPress 6.9.10, while the latest release is 7.1.3. It may still work, but try it on a staging site first.

What PHP version does Country Block need?

Country Block requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Country Block last updated?

The latest version, 1.0.3, was released on September 7, 2026 (1 month ago).

Who makes Country Block?

Country Block is developed and maintained by vpndeals.

What are the best alternatives to Country Block?

The most popular alternatives to Country Block are WP-Ban (8K+ installs), Banhammer (1K+ installs) and IP Ban (80+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.