Block access for countries on OpenCart

Block access to site from other countries
  • Module version: 1.1
  • Last Update: 03/04/2022
  • Module format: ocmod.zip
  • Modification: no
  • OpenCart: 3.x
  • OcStore: 3.x
  • PHP: 5.6 - 8.x
  • License: Single Domain
  • Author: OpenCartBot
  • Support: yes
  • Block access to site from other countries - Screenshot 1
  • Block access to site from other countries - Screenshot 2
fast support
$10.00
Available payment methods
Extension Compatibility
  • OpenCart: 3.0.0.0, 3.0.0.2, 3.0.1.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.4, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9, 3.0.4.0,
DeveloperOfficial OpenCart partnerOpenCart Development Partner
  •  Professional support of the author
  • Lifetime license
  • The license key is provided automatically
  •  Free license key for test domain
  • Extensions can be modified
  • Periodic module updates
  • Free technical support
Special offer

Ban customers from countries on OpenCart

OpenCart extension that allows you to block access to your site for users from certain countries. That is, you can block the ability to use the site for customers from any country.

DEMO AdminDEMO Live
demo/demo

If your site is vulnerable to DDoS attacks from certain countries, you can quickly block access to them. Or if you see unwanted activity in your OpenCart store, such as orders from countries you do not serve, then it will also be useful to extend the ban to countries.

The module works only with the IPv4 protocol, the most common today. The IP of the visitor determines the country of his stay and is checked for blocking this country. The module works very fast, because it does not fulfill any external requests and does not process large data sets. The module has a database of IP-addresses by country in ASN format, divided into parts.

In a special field in the module settings you need to enter the two-character country code (ISO Alpha 2) for which the site will be blocked. It is also possible to register several circles of countries separated by commas.

You can set your own message on the lock screen or enable user redirection to another page or url.

Despite blocking users from certain countries, the module has the ability to allow useful bots and crawlers from these countries.


Module installation instructions:

  1. Upload the module in the admin panel in the "Extensions" : "Install".
  2. Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
  3. Edit module. Enable the status of the module and adjust all its options to your needs and save the settings.
  4. Check country access blocking here
  5. Bingo!


Screenshots of Block access for countries

  • Block access to site from other countries - Screenshot 1
  • Block access to site from other countries - Screenshot 2

Changelog Block access for countries

  • v1.1 (03/04/2022) - Bugs fix
You must be logged in to view the files!
Write a review
Facebook Google
Note: HTML is not translated!
   Bad      Good

Jan Lasicki 08/10/2023

It's realy lightweight extension, working perfectly.


More OpenCart Extensions
Read Our Blog