RPeraltaJr
3/23/2017 - 6:56 PM

Prevent Unauthorized Directory Browsing. Disable directory listing.

source: https://perishablepress.com/stupid-htaccess-tricks/#sec3

This prevents publicly viewing resume files.

# Disable directory listing
Options -Indexes

# Option #2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Options All -Indexes

# Option #3
Options -Indexes
Order Allow,Deny 
Deny from all