How To: Restrict Access to Store for Customers from Certain Countries


For geolocation, you can use GeoLite2 databases created by MaxMind.

  1. In the admin panel go to Add-ons → Manage add-ons.
  2. Enable the Access restrictions add-on (change its status to Active).
  3. Go to Administration → Access restrictions.
  4. On the opened page in the IP or Domain tabs add the IPs or domain names, for which you want to restrict access to your store. To do it, click the + button on the right and fill in the information in the opened window.
  5. Set the Status field to Disable if you want to restrict access to the store for the specified IPs or domain names.
  6. Click Create.
Adding IPs, for which access to the store will be restricted.