How to Ban IP Address in OpenCart?

By on March 4th, 2017

OpenCart is one of the most popular eCommerce platforms available on the internet. We can use OpenCart to manage almost all the parts of our eCommerce store including security. Almost all the eCommerce platforms will provide you some security options that you can use to quickly solve some problems. For example, if someone is sending too many automated requests from a specific IP address or if someone is making fraud orders from a specific IP address.

OpenCart provides us an interface to BAN an IP address. After banning an IP address in our OpenCart store, no one can visit our store or send unwanted requests to our server from that IP address while it is on the ban list. It is fairly easy to ban an IP address in the OpenCart store because it provides us an easy to use interface to perform all these actions. In this tutorial, I am going to show you how to Ban IP addresses in OpenCart. So, Let’s get started with the tutorial.

How to Ban IP address in OpenCart

Log in to the admin panel of your OpenCart store and move your mouse on the Sales option given in the main menu. To understand or follow this tutorial visually, refer to the images attached after every step.

Create orders

It will show you a drop-down menu with more options. Move your cursor on the Customers -> Banned IP and click on it. In that section, we can manage the list of banned IP addresses.

Ban IP

Here you will see a list of banned IP addresses. Click on the Insert button given at the top-right corner of the section to add a new IP address to the list.

Ban IP

It will redirect you to a page where you will see a form with a single field labeled IP. In the field, Enter the IP address you want to ban.

Ban IP

Once done, hit the Save button given at the top-right corner of the section.

Ban IP

If you want to delete IP addresses from the ban list, select them using the checkboxes given in the first column of the table, and click on the Delete button given beside the Insert button. So, this is how you can manage banned IP addresses in your OpenCart store.


Conclusion: If you are running a big eCommerce store, it is important to keep track of fraud orders or bad requests. You can ban the IP address to decrease the load on your server as well as to discontinue illegal activities that might hurt your store. If you have any questions regarding this tutorial, please let us know in the comment section given below, we will reply you with the answer as soon as possible.

Leave a Reply