Prevent directory listing in Apache with htaccess

Posted by on Aug 9, 2010 in Apache | 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: Piece of cake.