Parent directory indexing occurs when a web server exposes directory listings (indexing) for parent folders, allowing traversal into subfolders that may contain private images. This publication explains how such exposures arise, practical methods for discovering them, risk assessment, responsible disclosure practices, and concrete remediation steps for site owners and administrators.
What is a Parent Directory Index?
Disable Directory Browsing: Configure your server (e.g., via .htaccess on Apache) to prevent listing folder contents. parent directory index of private images top
Open IIS Manager, select the directory, double-click "Directory Browsing," and click Disable. Parent Directory Index of Private Images: Practical Guide
For AWS S3: Ensure your buckets are NOT public. Use aws s3api get-bucket-acl and the Block Public Access settings.
For Google Drive/OneDrive: Do not generate "anyone with link can view" for folders containing sensitive images. Validate and sanitize filenames; store files outside webroot