Directory browsing can be used by hackers to find files you have with possible vulnerabilities, so they take advantage of these files to attack websites.
Directory browsing can be used by others to look at your files, copy images, and other information. This is why I encourage you to turn them off.
You need to connect your website using FTP or cPanel’s file manager. Next, locate the .htaccess file on the website. If you can’t find it, read this article Why Can’t Find the .htaccess file on setting up WordPress.
Then you add the following line at the end of the .htaccess file:
Options – Indexes
Don’t forget to save and re-upload the .htaccess file to your website.
-
Roscoe Storkey created the group
Disable Directory Indexing and Browsing 5 years, 1 month ago