Index Of Photo
Add the line Options -Indexes to your .htaccess file in the root directory. This will instantly block public viewing of all folders lacking an index file, returning a "403 Forbidden" error instead.
When directory browsing is enabled, the server displays everything inside that folder. If the folder is named "photo," the page becomes an "Index of /photo," showcasing every image file stored there. Why Do Open Photo Directories Exist? index of photo
For IIS, directory browsing is a feature you can disable through its graphical management console: Add the line Options -Indexes to your