New Zenner
- Join Date:
- Feb 2009
- Posts:
- 10
- Plugin Contributions:
- 0
.htaccess and download folder
I have been working on securing the download folder. I've been able to move it behind the public_html but I'm confused about the .htaccess file...
In the article https://www.zen-cart.com/tutorials/index.php?article=121 "How do I secure my Downloads folder to prevent theft?" it says:
Zen Cart already provides .htaccess protection for that folder. You could (should) update that file to add the file-extensions for all the types of files in your downloads folder. Thus, people using a browser cannot directly access any files matching those extensions.
I have been doing some research and I'm not sure how to "add the file-extensions". Do I just list the them? Use commons? Have to give it some instruction beforehand?
Here is the download folder .htaccess as it sits. If I want to add, say, .zip and .exe to is how would it look?
#prevent directory browsing -- for security
IndexIgnore */*
AuthType Basic
AuthName "No access"
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
Require valid-user
"Yeah. Mortal combat with unseen forces, I should deprive myself of telepathic information to spare you irritation -- from cheeping." ~ Bill Jacks, "John From Cincinnati" http://www.savejfc.net