deny directory listing htaccess
# Place the following in your .htaccess at doc root
Options -Indexes
deny directory listing htaccess
# Place the following in your .htaccess at doc root
Options -Indexes
How do I disable directory browsing?
This will disable directory listing from all folder that apache2 serves:
Open /etc/apache2/apache2.conf and change from this:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to this:
<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
then restart apache by:
sudo service apache2 reload
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us