slapbang wrote:
And I meant to say, if you put your IP address in the opencart/.htaccess as the only IP that can access it, isn't this going to stop others from going to your opencart store?
Yes, but you didn't state that the .htaccess file was in your store's directory. What you said was:
slapbang wrote:
... I put this in a .htaccess file in my admin directory, but it wouldn't let me access the admin site:
#IP authentication
order allow,deny
deny from all
allow from xxx.xxx.xxx (my ip address only).
Since the .htaccess file was in your admin directory, it should restrict access to the admin (only) to that IP address. If you wish to do this, you will need a static IP address to ensure that you have access to the admin. However,
slapbang wrote:
My admin site is password protected by my password and also by .htpasswd, so do I need a static IP as well for even more protection on my admin directory?
With a .htpasswd in place, I shouldn't think it would be necessary to get a static IP address.