How to disable the directory listing?
Follow the below steps to disable the directory listing.
Step 1: Initially, open your public_html folder or home folder.
Step 2: Then check for the file .htaccess. If it is not available, then create a .htaccess file. In case the .htaccess file is available, then open it.
Step 3: Now search for below mentioned lines in the last portion of the .htaccess file.
Step 4: Then modify that last line as
Note that if you have .htaccess file recently then just add the lines Options -Indexes in last portion of the .htaccess file.
Not at all
What could be better? (Optional)
Not related to my issue
Too complicated explanations
Too much information
Too old information
Do you have any other feedback about this faq ?