Disable Directory Listing with the .htaccess File Jul 10, 2020 | Security Options All -Indexes If you create a new directory and don’t put an index file in it, anyone can see all contents of that directory by going straight to the URL. Add this to the .htaccess file