QKits Country Blocker gives you full control over who can access your Magento 2 store based on geographic location.
Using the MaxMind GeoLite2 database, it detects each visitor's country before the page loads and enforces your rules instantly.
✅
Allowlist Mode
Only selected countries can access your store
🚫
Blocklist Mode
Block specific countries while allowing others
🔐
Fraud Reduction
Stop abuse and protect server resources
Key Features
Flexible Country Rules
Allowlist or blocklist mode with country codes. IP whitelisting bypasses rules.
Dry-run mode logs activity without blocking.
Built-in GeoIP Management
Download and auto-update MaxMind GeoLite2 directly from Magento admin.
Weekly cron keeps the database current.
Customizable Block Page
Choose built-in template, full HTML editor mode, or upload your own block page file.
Preview button included.
Access Request System
8-digit email verification system with auto-approve or manual review options.
Built-in rate limiting and abuse protection.
Fail-Safe Architecture
Fail-open design — if GeoIP lookup fails, visitors pass through.
Admin and checkout remain protected by default.
How It Works
Visitor requests your Magento store.
Middleware fires before page load and checks IP address.
GeoIP lookup determines country using local database.
If allowed — store loads normally with zero impact.
If blocked — professional 403 page displays with optional access request form.
Use your purchase email as the Composer username and your license key as the password.
Compatibility
Magento Open Source / Adobe Commerce 2.4.x
PHP 8.1 or 8.2
Composer 2.x
MaxMind GeoLite2 database (free account required)
No external dependencies — fully standalone module
GeoIP Country Blocker for Magento 2
Protect your Magento store by restricting access from high-risk countries
using real-time GeoIP detection. Control who can access your storefront
while providing a secure email-based approval workflow for legitimate visitors.
How It Works
When a visitor from a restricted country attempts to access your store,
they are shown a branded restriction page. Visitors may submit a valid
email address requesting access. Administrators can review and approve
requests directly within Magento.
Key Features
Accurate GeoIP country detection
Custom branded restriction page
Email-based access request submission
Admin approval grid for request management
Lightweight performance-focused implementation
Designed for Real-World Stores
Reduce fraud attempts, automated abuse, and unwanted regional traffic
while maintaining the ability to grant access to verified customers.
Ideal for stores experiencing high-risk international traffic patterns.
Live Demonstration
Test the Country Blocker in our live demo environment. Use a VPN
from a restricted region to trigger the restriction page and
submit a valid email address to experience the approval workflow.