location / autoindex off;
Options -Indexes To be extra safe, also block access to any file containing install or config :
A search engine crawler (like Googlebot or Bingbot) visits the website. It finds the jones-wedding folder, sees no index file, and helpfully indexes every single file name. Now, a search for "Index of /client-data" on Google will return that photographer’s private client gallery.
<Directory /var/www/html> Options -Indexes </Directory>