PageForge 1.3: Überprüfen Sie jeden Durchlauf, bevor er schreibt, aktualisierte Seiten, SpinTax und wiederaufnehmende Batches. Sehen Sie, was sich geändert hat
Smart Country Blocker icon
gepflegt Getestet bis 7.0.9 #4 in country block

Smart Country Blocker

Block visitors from specific countries for both frontend and backend (wp-admin) access with comprehensive logging and reporting.

Aktive Installationen20+10+ Stufe
Downloads · 30d92▲ +9.5% vs prev. 30d
Wertung5/51 Bewertungen
Gesundheits-Score59/100Messe
Downloads aller Zeiten367Seit Jul 2026
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.0PHP 7.4+
Downloads · 7d25▲ +19% week over week
Unser Urteil

Mit Vorsicht verwenden

Smart Country Blocker works, but test it on a staging site before relying on it in 2026. It runs on 20+ sites, is rated 5/5 and was last updated 4 months ago, and scores 59/100 on our health check.

  • Kleine Benutzerbasis (20+ aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

257Aug 25Oct 8Nov 22
Gestern4
Täglicher Durchschnitt (1 Jahr)3
Spitzentag33Jul 22, 2026
Letzte 12 Monate370

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Smart Country Blocker stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
country block #31 3,056 Best country block plugins →
geo blocking #32 324 Best geo blocking plugins →
GeoIP #38 244 Best GeoIP plugins →
IP-blocking #70 1,496 Best IP-blocking plugins →
Sicherheit >100 10,000 Beste Sicherheits-Plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.0100.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Smart Country Blocker

Aus der offiziellen Readme · V1.0.4

Beschreibung

IMPORTANT: This plugin uses external third-party services (ipwho.is and ipapi.co) to determine visitor location. Please review the “External Services” section below for details on data transmission and privacy.

Smart Country Blocker is a powerful WordPress plugin that allows you to restrict access to your website based on visitor location. Block unwanted traffic from specific countries on both frontend pages and backend admin areas.

Hauptmerkmale:

  • 🌍 Complete Country List – Select from 195+ countries worldwide
  • 🎯 Frontend & Backend Blocking – Block both website pages and wp-admin/wp-login.php
  • 📊 Comprehensive Logging – Track all blocked access attempts with IP, country, URL, and timestamp
  • 📈 Statistics Dashboard – View total blocks, unique IPs, and blocked countries count
  • 🔍 Advanced Filtering – Filter and sort logs by country, date, IP address
  • 📄 Pagination – Manage large log datasets with 20 records per page
  • ⚡ Quick Remove – Remove countries from blocked list with one click
  • 🔒 Cache-Friendly – Compatible with major caching plugins (see configuration below)
  • 🎨 Customizable Block Page – Edit blocked.php to customize the access denied page
  • 🖥️ Easy-to-Use Interface – Checkbox selection with search functionality

Important: Cache Plugin Compatibility

CRITICAL: If you use a caching plugin (WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, etc.), cached pages may bypass country blocking. Follow these configuration steps:

WP Rocket Configuration

WP Rocket should work automatically as the plugin sets the DONOTCACHEPAGE constant. However, for best results:

  1. Go to WP Rocket > Settings > Advanced Rules
  2. Add this to “Never Cache URL(s)”:
    /(.*)
    (Only if you want to disable cache completely for blocked countries)
  3. The plugin automatically prevents caching for blocked visitors

W3 Total Cache Configuration

  1. Go to Performance > Page Cache
  2. Scroll to “Never cache the following pages:”
  3. Add: * (if you want complete blocking to bypass cache)
  4. OR go to Performance > General Settings
  5. Enable “Page Cache” > “Don’t cache pages for logged in users”

WP Super Cache Configuration

WP Super Cache should work automatically as the plugin sets no-cache headers. To verify:

  1. Go to Settings > WP Super Cache
  2. Make sure “Don’t cache pages with GET parameters” is enabled
  3. The plugin sends proper no-cache headers for blocked visitors

LiteSpeed Cache Configuration

  1. Go to LiteSpeed Cache > Cache
  2. Under “Do Not Cache URIs”, you can add specific paths if needed
  3. The plugin sets proper cache bypass constants

Cloudflare Configuration

If using Cloudflare:

  1. Go to Cloudflare Dashboard > Rules > Page Rules
  2. Add a rule: yoursite.com/*
  3. Set “Cache Level” to “Bypass” (optional, only if experiencing issues)
  4. Or add IP-based rules in Cloudflare’s Firewall

Testing After Configuration

Always test blocking functionality:

  1. Connect to a VPN from a blocked country
  2. Try to access your website
  3. You should see the “Access Restricted” page
  4. Check Block Logs in the plugin to confirm the block was logged
  5. If you can still access, clear your cache plugin cache and test again

Verwendung

Blocking Countries

  1. Go to Country Blocker in WordPress admin
  2. Use the search box to quickly find countries
  3. Check/uncheck countries to block/unblock
  4. Click Save Changes
  5. Use “Select All” or “Deselect All” for bulk operations

Quick Remove Blocked Countries

  1. View the “Currently Blocked Countries” section at the top
  2. Click the × button next to any country to remove it instantly
  3. Confirm the removal in the popup

Viewing Block Logs

  1. Go to Country Blocker > Block Logs
  2. See statistics: Total Blocks, Unique IPs, Countries Blocked, Last 7 Days
  3. Filter logs by country, sort by date/IP/country
  4. View detailed information: IP address, country, access type (frontend/backend), URL, timestamp
  5. Use pagination to navigate through logs

Clearing Logs

Click Clear All Logs button to remove all historical block records. This cannot be undone.

Externe Dienste

This plugin relies on third-party GeoIP services to determine visitor location based on their IP address. These services are essential for the plugin’s core functionality.

ipwho.is (Primary Service — default)

What it does: Provides IP geolocation data to identify the visitor’s country.

When data is sent: Every time a new visitor accesses your website from an IP address not cached in the last hour. The plugin sends the visitor’s IP address to ipwho.is API.

Data transmitted: Only the visitor’s IP address is sent to the API. No personal information, cookies, or user data is transmitted.

Caching: Results are cached for 1 hour per IP address to minimize API calls and improve performance.

Service provider: ipwho.is is a free IP geolocation service.

Website: https://ipwho.is/

API Documentation: https://ipwho.is/

Terms of Service: https://ipwho.is/ (see website footer for terms)

Privacy Policy: https://ipwho.is/ (see website footer for privacy policy)

findip.net (Optional Alternative Service)

What it does: An alternative IP geolocation service you can use instead of ipwho.is. Requires a free API key.

When data is sent: When configured as the primary service, the visitor’s IP address is sent to findip.net on each uncached lookup.

Data transmitted: Only the visitor’s IP address is sent to the API. No personal information, cookies, or user data is transmitted.

Service provider: findip.net is an IP geolocation service using GeoNames / MaxMind data.

API key: A free account and API token are required. Sign up at https://findip.net/ and enter the token in Country Blocker > API Settings.

Website: https://findip.net/

API Documentation: https://findip.net/

Terms of Service: https://findip.net/ (see website for current terms of service)

Privacy Policy: https://findip.net/ (see website for privacy policy information)

Note: By using findip.net, you agree to their terms of service and privacy policy as outlined on their website.

ipapi.co (Fallback Service)

What it does: Acts as a backup geolocation service if the primary service (ipwho.is or findip.net) fails or is unavailable.

When data is sent: Only when the primary service fails to respond or returns an error. The plugin automatically tries ipapi.co as a fallback.

Data transmitted: Only the visitor’s IP address is sent to the API. No personal information, cookies, or user data is transmitted.

Service provider: ipapi.co is a free IP geolocation service with rate limits (30,000 requests/month for free tier).

Terms of Service: https://ipapi.co/terms/

Privacy Policy: https://ipapi.co/privacy/

API Documentation: https://ipapi.co/api/

Data Protection & Privacy

  • The plugin does NOT send any personal user data, cookies, form inputs, or browsing history to external services.
  • Only IP addresses are transmitted, which are necessary for geolocation functionality.
  • API requests are made server-side; visitor browsers do not directly contact these services.
  • Failed API lookups are logged locally for troubleshooting purposes.
  • All API requests use HTTPS (SSL) encryption.

Legal Compliance

If you operate in regions with strict privacy laws (GDPR, CCPA, etc.), please be aware:
– IP addresses may be considered personal data under some regulations.
– Consider adding a privacy notice informing users that their IP addresses may be processed for access control.
– The plugin logs blocked access attempts (IP + country + timestamp) in your WordPress database for security purposes.

Technical Details

Database Table

The plugin creates wp_country_blocker_logs table with the following structure:
– id (Primary Key)
– ip_address (VARCHAR 45)
– country_code (VARCHAR 2)
– country_name (VARCHAR 100)
– blocked_url (TEXT)
– user_agent (TEXT)
– access_type (VARCHAR 20) – ‘frontend’ or ‘backend’
– blocked_at (DATETIME)

Hooks Used

  • plugins_loaded (priority -999999) – Early blocking execution
  • admin_menu – Register admin pages
  • admin_notices – Show cache configuration notice

Constants Defined

Important Note About Unprefixed Constants:

This plugin defines industry-standard cache bypass constants that are intentionally unprefixed and cannot be changed. These constants have been the de-facto standard in the WordPress caching ecosystem for over 15 years and are recognized by virtually all caching plugins and CDN services.

Why these constants MUST remain unprefixed:

These constants are NOT WordPress core constants. They are industry standards established by the caching plugin ecosystem. WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, and dozens of other caching/CDN plugins specifically check for these exact constant names.

Prefixing these constants (e.g., changing DONOTCACHEPAGE to WPCB_DONOTCACHEPAGE) would break compatibility with all major caching plugins, rendering the blocking functionality useless on cached sites.

Constants used for cache bypass (when blocking visitors):

  • DONOTCACHEPAGE – Prevents page caching (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache)
  • DONOTCACHEDB – Prevents database query caching (W3 Total Cache)
  • DONOTMINIFY – Prevents JS/CSS minification (Autoptimize, WP Rocket, Fast Velocity Minify)
  • DONOTCDN – Prevents CDN URL rewriting (CDN Enabler, W3 Total Cache CDN module)
  • DONOTCACHEOBJECT – Prevents object caching (LiteSpeed Cache, W3 Total Cache)

These constants are set ONLY when a visitor is being blocked (403 response), not globally. They signal to caching plugins: “Do not cache this specific request.”

References:
– WP Rocket Documentation: https://docs.wp-rocket.me/article/61-disable-page-caching
– LiteSpeed Cache Documentation: https://docs.litespeedtech.com/lscache/lscwp/cache/#do-not-cache-constants

This is an accepted exception to WordPress naming conventions and is properly documented in the code with phpcs ignore comments.

Unterstützen

For support, bug reports, or feature requests, please contact the developer.

Privatsphäre

This plugin logs IP addresses and country information for security purposes. Ensure compliance with GDPR/privacy laws in your jurisdiction. Consider adding a privacy notice to inform users that their IP addresses may be logged if they attempt to access from blocked countries.

Installation

  1. Laden Sie den Ordner smart-country-blocker in das /wp-content/plugins/-Verzeichnis hoch
  2. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
  3. Important: Deactivate and reactivate the plugin to create the database table for logging
  4. Go to Country Blocker menu in WordPress admin
  5. Select the countries you want to block using checkboxes
  6. Click Save Changes
  7. Test with a VPN from a blocked country to verify it works

Änderungsprotokoll

WordPress.org submission version. All review feedback addressed.

1.0.4 – 2026-07-13

  • Minor version update for WordPress.org submission

1.0.3 – 2026-07-13

  • Fixed: Refactored blocked page CSS to use wp_register_style() and wp_add_inline_style() (WordPress compliant)
  • Fixed: Added version parameter to wp_register_style() for proper cache busting
  • Fixed: Updated findip.net Terms/Privacy URLs to point to main website (404 URL fix)
  • Enhanced: Blocked page now uses wp_enqueue_style() and wp_print_styles() properly
  • Compliance: All WordPress Plugin Review CSS enqueue requirements met

1.0.2 – 2026-07-09

  • Fixed: Added proper phpcs ignore comments for Plugin Check tool validation
  • Enhanced: Improved input validation documentation for security scanner
  • Security: Added comprehensive security hardening with capability checks
  • Security: Implemented HTTP security headers (X-Frame-Options, X-XSS-Protection, etc.)
  • Security: Added API rate limiting (500 requests/hour) to prevent abuse
  • Security: Enhanced private network detection (RFC1918 ranges)
  • Compliance: All WordPress Plugin Check warnings resolved

1.0.1 – 2026-07-09

  • Fixed: Converted blocked.php to use inline styles (WordPress compliant for error pages)
  • Fixed: Added comprehensive external services documentation with Terms of Service and Privacy Policy links
  • Enhanced: Added extensive documentation for industry-standard cache bypass constants
  • Removed: Unused blocked.css file (now using inline styles)
  • Compliance: All WordPress Plugin Review issues addressed and resolved

1.0.0 – 2024-03-24

  • Erste Freigabe
  • Complete list of 195+ countries
  • Frontend and backend (wp-admin, wp-login.php) blocking
  • Comprehensive logging system with database table
  • Statistics dashboard (Total Blocks, Unique IPs, etc.)
  • Advanced filtering and sorting (by country, date, IP)
  • Pagination for logs (20 records per page)
  • Quick remove buttons for blocked countries
  • Search functionality for country selection
  • Cache plugin compatibility (WP Rocket, W3 Total Cache, etc.)
  • IP geolocation caching (1 hour) for performance
  • No-cache headers for blocked pages
  • Custom blocked page with Bootstrap design
  • WordPress nonce security for all forms
  • Localhost bypass for development

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Smart Country Blocker alternatives

All country block plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 IP Location Block IP Location Block Block or allow WordPress visitors by country, US state or region, IP, CIDR, or ASN. Protect… by Ideologix 10K+ ★★★★★★★★★★ 4.5 (35) Vor 1 Monat 88
2 SF GeoGuard SF GeoGuard Country-based access control for WordPress. Restrict access by country, whitelist IP… by sf-geoguard 50+ ★★★★★★★★★★ 5 (1) Vor 11 Monaten 47
3 Wonderful Geoblocking Countries Wonderful Geoblocking Countries Blocks site access, login, or registration for visitors from selected countries or VPN… by wonderfulplugins 30+ ★★★★★★★★★★ 5 (1) Vor 2 Monaten 70
5 TrustBrain IP Access Control TrustBrain IP Access Control GeoIP-based access control plugin with country blocking, IP whitelist/blacklist, and access… by TrustBrain 10+ ★★★★★★★★★★ Keine Bewertungen Vor 2 Wochen 66
6 MID GeoShield Access Manager MID GeoShield Access Manager Easily block visitors from selected countries with geo-based restrictions and an admin… by midexigner <10 ★★★★★★★★★★ Keine Bewertungen Vor 11 Monaten 36
7 GeoGuard – Country Access Manager GeoGuard – Country Access Manager Protect your content by blocking or redirecting visitors from specific countries. by Delwar Hossain <10 ★★★★★★★★★★ Keine Bewertungen Vor 11 Monaten 36
8 Block Account Create Login by Country GRC Block Account Create Login by Country GRC Blocks unauthorized role logins from restricted countries using local MaxMind databases… by Robert G. <10 ★★★★★★★★★★ Keine Bewertungen Vor 4 Monaten 38
9 EDZNET Geolocation EDZNET Geolocation IP geolocation, visitor logging, country blocking, and location shortcodes powered by the… by EDZNET <10 ★★★★★★★★★★ Keine Bewertungen Vor 1 Woche 64
10 ElliePass – Age Verification & Identity Verification & Location Verification ElliePass Privacy-focused human, age, identity, and location verification for WordPress communities… by ElliePass <10 ★★★★★★★★★★ Keine Bewertungen Vor 2 Monaten 60
11 Blockary – Access Firewall Blockary – Access Firewall Blocks visitors by country and blocks malicious login attempts before the page loads. by Michael <10 ★★★★★★★★★★ Keine Bewertungen Vor 1 Woche 64

Fragen und Antworten

Smart Country Blocker: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Smart Country Blocker free?

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

Is Smart Country Blocker safe to use in 2026?

Smart Country Blocker works, but test it on a staging site before relying on it in 2026. It runs on 20+ sites, is rated 5/5 and was last updated 4 months ago, and scores 59/100 on our health check.

How many websites use Smart Country Blocker?

Smart Country Blocker is active on 20+ WordPress websites and has been downloaded 367 times since it launched in July 2026. It was downloaded 92 times in the last 30 days.

Does Smart Country Blocker work with WordPress 7.1?

Smart Country Blocker is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Smart Country Blocker need?

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

When was Smart Country Blocker last updated?

The latest version, 1.0.4, was released on July 22, 2026 (4 months ago).

Who makes Smart Country Blocker?

Smart Country Blocker is developed and maintained by Shakib R Khan.

What are the best alternatives to Smart Country Blocker?

The most popular alternatives to Smart Country Blocker are IP Location Block (10K+ installs), SF GeoGuard (50+ installs) and Wonderful Geoblocking Count… (30+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen