Links

Country Blocker for Magento 2

$199.95
In stock
SKU
QKMOD-CB
Samples
PDF install

GeoIP-Based Country Access Control with License Enforcement

🛡

Country Blocker for Magento 2

Professional GeoIP Access Control — Version 2.0.0

Overview

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

  1. Visitor requests your Magento store.
  2. Middleware fires before page load and checks IP address.
  3. GeoIP lookup determines country using local database.
  4. If allowed — store loads normally with zero impact.
  5. If blocked — professional 403 page displays with optional access request form.

Composer Installation

$ composer config repositories.qkits composer https://modules.qkits.com/composer/packages.json
$ composer require qkits/module-country-blocker:^2.0
$ php bin/magento module:enable QKits_CountryBlocker
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush

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.

Reviews

Write Your Own Review
You're reviewing:Country Blocker for Magento 2
Your Rating
Copyright © 2013-present Magento, Inc. All rights reserved.