Answer the question
In order to leave comments, you need to log in
How to disable directory browsing?
How to configure .htaccess so that the user cannot open a directory and see the contents of the folder. The variant with installation of the rights through FTP is not good. Moreover, this error allows you to view even php files.
Answer the question
In order to leave comments, you need to log in
I found the solution in one of the Runion topics. In all directories with php files it was necessary to create .htaccess with deny from all. Thanks to everyone who posted replies
It is enough to add just one simple line to .htaccess at the root of the site:
# запрет выдачи листинга
Options -Indexes
The simplest way is to create index.html with zero size. Then Apache will show it - and it's empty :)
View through what?
through the browser fork files? - then this is one error
You can open the body of the php file - this is another error You
can
even go to this folder - this is another error
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question