OpenCart Security 101 (htaccess protection & index files)
Posted: Sun Dec 01, 2013 7:12 am
Hey Guys,
I'm working on securing our website at the moment and running into some issues. The OC documentation here: http://docs.opencart.com/display/openca ... +practices says that if I upload an htaccess file with particular configuration and "your ip address here", yet obviously my own personal IP wouldn't make sense as it is a public website... I also tried the server IP, localhost, 127.0.0.1, et al. Yet it still denies access no matter what unless I put my own IP which blocks the whole world except for me. Great for business, right
My question is... what folders am I supposed to upload this into? Just /catalog/ and/or /system/, or all sub-directories as well? And what am I supposed to use for "your ip address here", if not my own?
Second question: I found another source who mentioned that blank index.php files should be placed in all "pertinent" folders to prevent directory browsing. Okay... which folders? I see that WP uses this in their base install but is not in all folders--seems to be just the empty ones.
Beyond that, I'm really looking to open a discussion here on how to lock down an OpenCart site like Fort Knox without killing the functionality of the site beyond the basic "Opencart Security 101" stuff. I've installed CMS-specific security modules on other websites that have proven to be very successful at blocking attacks but yet to find anything worth buying made for OC.
Thoughts?
I'm working on securing our website at the moment and running into some issues. The OC documentation here: http://docs.opencart.com/display/openca ... +practices says that if I upload an htaccess file with particular configuration and "your ip address here", yet obviously my own personal IP wouldn't make sense as it is a public website... I also tried the server IP, localhost, 127.0.0.1, et al. Yet it still denies access no matter what unless I put my own IP which blocks the whole world except for me. Great for business, right

My question is... what folders am I supposed to upload this into? Just /catalog/ and/or /system/, or all sub-directories as well? And what am I supposed to use for "your ip address here", if not my own?
Second question: I found another source who mentioned that blank index.php files should be placed in all "pertinent" folders to prevent directory browsing. Okay... which folders? I see that WP uses this in their base install but is not in all folders--seems to be just the empty ones.
Beyond that, I'm really looking to open a discussion here on how to lock down an OpenCart site like Fort Knox without killing the functionality of the site beyond the basic "Opencart Security 101" stuff. I've installed CMS-specific security modules on other websites that have proven to be very successful at blocking attacks but yet to find anything worth buying made for OC.
Thoughts?