To disable Apache's directory content listing feature, you should configure the Apache Configuration file (httpd.conf that is located in the "conf" directory of the Apache installation directory).
Find the line that includes "Options Indexes" that is couples of lines after the line "
To illustrate, the following codes:
...
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
...
is replaced with:
...
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options -Indexes FollowSymLinks MultiViews
...
Hiç yorum yok:
Yorum Gönder