I have a folder, for example : /public_html/Davood/
and too many sub folder in folder, for example : /public_html/Davood/Test1/
, /public_html/Davood/Test1/Test/
, /public_html/Davood/Test2/
, ...
I want add a htaccess file into /public_html/Davood/
To deny DirectoryListing In /Davood
And Sub Folders, It's Possible ?
Options All -Indexes
didn't work as in few answers! – Fr0zenFyrAllowOverride All
, works – DJafariOptions -Indexes
is the good solution. But there are multiple other solutions you can use with htaccess to deny directory listing .. see here helponnet.com/2021/07/29/apache-disable-directory-listing – Amit Verma