Ace Info About How To Prevent Directory Listing In Apache
Usually apache comes with this feature enabled but its always a good idea.
How to prevent directory listing in apache. One of the “must do’s” on setting a secure apache web server is to disable directory browsing. To disable directory listing, we need to switch the value of the autoindex to off. Steps to preventing a directory listing get your existing.htaccess file, if any connect to your website using an ftp or sftp software.
Do not forget to run the below command in order for changes to go into effect: The best way to do this is disable it with webserver apache2. Save your changes to the file.