Directory Indexes
Control whether visitors see a file listing or a 403 error for folders without index files using Hostinger's Folder Index Manager in hPanel or .htaccess.
Control what visitors see when they hit a URL that maps to a directory with no index.html or index.php: a file listing, or a 403 Forbidden. In hPanel this tool is called Folder Index Manager.
Warning: Directory listing should be disabled in most cases. Exposing your file structure can leak sensitive files, config, or backups.
Toggle in hPanel
Open your website dashboard.
Go to Advanced → Folder Index Manager.
Choose:
Enabled — visitors see directory contents when there's no index file.
Disabled — visitors get 403 Forbidden.
Click Save.
Only enable this if you intentionally want a browsable folder (e.g., a public downloads directory).
Per-directory via .htaccess
Disable listing:
Options -IndexesEnable listing:
Options +IndexesPlace the .htaccess in the directory you want to affect.
Last updated: July 22, 2026
Last updated
Was this helpful?