Skip to content

Country Blocking

Purpose

Block access to your store from specific countries. Simple blacklist-based restriction to prevent certain countries from accessing your store.

Accessing Country Blocking Settings

Click ModulesSettingsCountry Blocking

Settings Overview

Configure which countries should be blocked from accessing your store.

Country Blocking Settings


Configuring Country Blocking

Form Fields

Enable Country Blocking

  • Type: Toggle (On/Off)
  • Purpose: Activate or deactivate country-based access restrictions
  • When Off: All countries can access your store
  • When On: Selected countries will be blocked

Block Mode

  • Type: Dropdown
  • Options:
  • Frontend Only: Block access to the storefront only
  • Backend Only: Block access to the admin panel only
  • Both Frontend & Backend: Block access to both areas
  • Purpose: Choose which parts of your store to protect
  • Warning: Blocking backend access may lock you out if your country is blocked

Blocked Message

  • Type: Text area
  • Purpose: Message shown to visitors from blocked countries
  • Default: "Not available in your country"
  • Example: "Our store is currently not available in your region. Please check back soon!"

Blocked Countries

  • Type: Checkbox list
  • Purpose: Select which countries to block
  • Features:
  • Search: Filter countries by name
  • Select All / Deselect All: Quickly toggle all countries
  • Grid Layout: Easy-to-scan 3-column layout
  • Note: List reflects all configured countries in your system

Saving Configuration

  • Save: Apply country blocking rules immediately

How It Works

  1. Enable country blocking
  2. Choose which areas to protect (frontend, backend, or both)
  3. Select countries to block using checkboxes
  4. Visitors from blocked countries see your custom blocked message

Key Information

  • Global Scope: Applies to your entire store
  • Customer Experience: Blocked users see the message instead of store content
  • IP-Based Detection: System detects visitor location from Cloudflare IP headers
  • Maintainer Access: Support team IPs are always allowed regardless of settings