Block Traffic from Specific Countries

This is the most common use case for Kedra Shield. Follow this guide to block visitors from one or more countries, such as China, Russia, or any other region you do not serve.

Step 1: Block the Country

  1. Go to Location Blocker from your dashboard.
  2. Set Block type to Blacklist.
  3. In the country search field, find and select the countries you want to block.
  4. Leave Page selection on All pages (unless you only want to block specific pages).
  5. Click Save.

Step 2: Enable VPN Blocking

Country blocking alone is not enough — visitors can use VPNs to appear as if they are in an allowed country. Enable VPN blocking to catch these visitors.

  1. Go to VPN & Bot Blocker from your dashboard.
  2. Enable the VPN & Proxy Blocking toggle.
  3. Keep “Block all VPN users” off (recommended).
  4. Keep “Allow business VPNs” on (recommended).
  5. Click Save.

Step 3: Enable Bot Blocking

Many unwanted visitors from blocked regions are automated bots, not real people. Bot blocking adds another layer of detection.

  1. In VPN & Bot Blocker, enable the Bot Protection toggle.
  2. Keep “Enable strict blocking” off to start. Switch to strict mode later if you continue to see suspicious traffic.
  3. Click Save.

After Setup

Blocked visitors will still appear in Shopify Analytics

This is expected. Shopify records the session before Kedra Shield can block the visitor. The visitor was blocked and never actually browsed your store. See Blocking Doesn’t Seem to Be Working for a full explanation.

How to verify it is working

  • Check the Blocked IPs tab in Analytics — blocked visitors will appear here.
  • Test by using a VPN to connect from a blocked country and visiting your store in an incognito window.
  • Confirm the green “Active” badge is showing on your dashboard.
FeatureSetting
Location BlockerBlacklist mode, select target countries
VPN & Proxy BlockingEnabled, high-risk mode
Allow business VPNsOn
Bot ProtectionEnabled, regular mode

Next Steps