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/i...hp?article=121 "How do I secure my Downloads folder to prevent theft?" it says:
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?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.
Here is the download folder .htaccess as it sits. If I want to add, say, .zip and .exe to is how would it look?
Code:#prevent directory browsing -- for security IndexIgnore */* AuthType Basic AuthName "No access" AuthUserFile .htnopasswd AuthGroupFile /dev/null Require valid-user




