Prevent directory listing in Apache with htaccess

Posted by Danny Herran on Aug 9, 2010 in Backend | No comments

Piece of cake. If you need to prevent your files, images or anything else to be listed in those directories where an index file is not present, just add the following to your .htaccess file:

Options -Indexes

Piece of cake.