Make Directory Not Accessible But Allow Read of its Files
Posted: 2014-04-05 06:00
Hello
Is it possible to not allow public reading of a directory but allow public reading of the files inside that directory?
Essentially I dont want people see navigate to http://www.example.com/Files/ and see a list all the files in that directory. Maybe I can achieve this by editting .htaccess? But it would be easier to edit the directory through Filezilla.
I have tried setting the directories permissions to disallow public read, write and execute. And setting a file inside that directory to allow public read, write, execute. But when I go to access the file it gives me a 403 error.
Is it possible to not allow public reading of a directory but allow public reading of the files inside that directory?
Essentially I dont want people see navigate to http://www.example.com/Files/ and see a list all the files in that directory. Maybe I can achieve this by editting .htaccess? But it would be easier to edit the directory through Filezilla.
I have tried setting the directories permissions to disallow public read, write and execute. And setting a file inside that directory to allow public read, write, execute. But when I go to access the file it gives me a 403 error.