restrict directory indexing apache2 code example Example: apache don't list directory contents <Directory /var/www/mysite> Options -Indexes </Directory>