Securing Our Sites Directories
If we store files or images in a folder called "images", and people enter www.oursite.com/images as a URL, they will see a list of all the files we have in that directory. A quick way to solve this is to create an empty index.html or index.php file and upload it to the directory. This will load an empty page instead of showing a content list.
Another way of doing this is by modifying (or creating) a .htaccess file. Just place:
in our .htaccess file and it will do the same thing as adding an index.html file to your folder.