need some help...
I need to protect all the FOLDERS
in a DIRECTORY
from direct URL
access. Can I do this with .ht
As Fabio points out - it's better to keep such files out of web root. But you still CAN use .htaccess to protect the files. They'll be guaranteed protected unless you accidentally delete the .htaccess or the sysadmin changes the main configuration (which sometimes happens).
Just put a an .htaccess into the directory you want to protect, and put a single line in that .htaccess:
deny from all