Any good web host will secure the contents of website directories which don’t have an index page by not allowing the files or folders to be listed, instead you’ll get a 403 error page saying access is forbidden. Whilst this is good in practice, sometimes you might actually need to list the contents – and its simple to enable on an Apache web server – add one line to your .htaccess file and you’re done!
How it’s done
Options +Indexes
Notes
- If you have access you can edit your web server configuration and make it global