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:
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
Edit module. Enable the status of the module and adjust all its options to your needs and save the settings.
On November 20, 2025, a new major release of PHP was published - version 8.5. PHP 8.5 introduces useful improvements, but requires a careful approach when integrating into existing OpenCart projects.
Let’s look at OpenCart optimization methods that don’t require purchasing additional modules or paying for services. The main stages of OpenCart speed optimization.
✕
We use cookies and other tracking technologies to improve your browsing experience our website, to personalize content and ads, provide social features media and our traffic analysis.
Necessary cookies enable core functionality of the website. Without these cookies the website can not function properly.
Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.
A set of cookies to collect information and report about website usage statistics without personally identifying individual visitors to Google.
Marketing cookies store user data and behaviour information, which allows advertising services to target more audience groups.