adornitdigital Posted December 14, 2007 Posted December 14, 2007 We just barely installed osCommerce and the administrative folder is completely open. Does anyone know how to protect that directory with a password?
nimz Posted December 14, 2007 Posted December 14, 2007 if you used the latest version available for download it would have the admin section protection included. you should use .htaccess file to protect it. easiest way of doing it would be using your hosts control panel to password protect directories in this case admin. it will ask for a username and password and then pass protects the directory. if you don't have access to such option in control panel then you need to modify .htaccess file in your admin folder manually which isn't hard either. just google .htaccess password protect directory for a lots of tutorials on how to do it. Santa's little freelancer
adornitdigital Posted December 17, 2007 Author Posted December 17, 2007 okay thanks! i went with modifying the .htaccess file. if i upload the .htaccess file in the main directory the entire site is password protected but it works. but when i move the .htaccess to the folder i want protected it doesn't work at all.... why is that happening?? :(
nimz Posted December 17, 2007 Posted December 17, 2007 copy/paste your .htaccess contents here. also if you have access to cpanel it would be easier to use the "password protect directories" option. Santa's little freelancer
adornitdigital Posted December 17, 2007 Author Posted December 17, 2007 AuthName "Restricted Area" AuthType Basic AuthUserFile /home/html/.htpasswd AuthGroupFile /dev/null require valid-user
adornitdigital Posted December 17, 2007 Author Posted December 17, 2007 so any ideas for why its not working for a certain folder?
nimz Posted December 18, 2007 Posted December 18, 2007 AuthUserFile /home/html/.htpasswd this should be the full address to the htpasswd that you have created. here's a tool you can use http://tools.dynamicdrive.com/password/ Santa's little freelancer
Recommended Posts
Archived
This topic is now archived and is closed to further replies.