Apache Hardening: Disable Folder Listing

Disable Folder Listing on Apache HTTPD

Disable Browsing on Apache

One of the first steps when you start securing your Apache server is to disable the directory browsing, you don't want anyone to browse your file and know the structure.

Disable Folder Browsing

In this example i will disable browsing for /var/www/html/dotsway folder.

vi /etc/httpd/conf/httpd.com

<Directory /var/www/html/dotsway>
Options -Indexes
Order allow,deny
Allow from all


Restart Apache

service httpd restart
systemctl restart httpd


Subscribe to
for video tutorials updates