When you navigate to a standard webpage (e.g., https://www.example.com/gallery/photo.jpg ), the server is configured to serve a specific file or an index.html file. However, if a web administrator fails to upload an index.html file into a directory and the server’s directory browsing feature is enabled, the server will default to displaying a raw, plain-text list of all files inside that folder.
Whether you are a system administrator, a blogger, or just someone who uploaded "private" images to a portfolio site—audit your directories today. Because somewhere on the internet, right now, a search engine is returning a result for intitle:"index of" "private" "jpg" . Make sure that result isn’t yours. Stay secure. Check your indexes.
Options -Indexes This disables directory listing globally or per folder. Edit the server block location:
This is what you see:
Index of /private [IMG] vacation_2023.jpg 2024-01-15 14:22 2.1 MB [IMG] scan_id_front.jpg 2024-01-10 09:13 890 KB [IMG] wedding_private.jpg 2024-01-05 18:45 3.4 MB [ ] .DS_Store 2024-01-05 18:46 6 KB
Never trust folder names for security. Never rely on obscurity. And never, under any circumstances, put the word "private" in a publicly accessible URL path.
intitle:"index of" "private" jpg Or: