InMotion Hosting Support Center

At times, you may find it necessary to block or ban specific IP addresses from visiting your store. You may want to block people using an IP address if they have placed a fraudulent order or they may have left abusive or negative comments on your website. OpenCart 1.5.x has the ability to ban IP addresses from your website but this option is currently under review. This article provides information on blocking IP addresses through the cPanel and the .htaccess file. You can also more specifically allow customer accounts using the OpenCart Administrator dashboard interface. The steps to enable or disable customers will be listed below.

Blocking IP addresses in the cPanel

IP addresses can be blocked at the server level using the cPanel interface. This allows the server to handle the security instead of the OpenCart application. The .htaccess file allows you to handle large numbers of IP addresses directly instead of using the IP deny manager which allows you add them only one at a time. The video and written tutorial to block IP addresses can be seen here: Restricting access with IP Deny and .htaccess.

Enabling or Disabling Customers in the OpenCart Dashboard

  1. Log into your OpenCart Admin Dashboard.
  2. Hover over the menu bar where it is labeled Sales.
  3. Scroll down, then click on Customers. When the menu pops up to the right, click on Customers once again.
  4. Manage customer interface You will see the list of customers who are currently added to your OpenCart site. Note the Status column. If the customer is Enabled, then they have access to your store front. Click on EDIT on the far right for the specific customer that you wish to change.
  5. Edit Customer status Scroll down to the STATUS option at the bottom of the General tab and click on the drop-down menu to change the status of the customer.
  6. Click on SAVE in the top right corner to save your changes.

Using these options, you can keep unwanted customers from getting to your store front. These options allow you to manage specfic customers or prevent access by groups using the .htaccess file.

Continued Education in Course OpenCart
You are viewing Section 8: 330: How to ban visitors by IP address in OpenCart 1.5x
Section 7: 331: Error with vQmod after upgrading to OpenCart 1.5.2
Section 9: 329: Customizing the Footer of OpenCart 1.5 by removing "Powered by"

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2015-08-11 1:52 am

Thank you for your very clear explanation...

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

1 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!