Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: Is there a way of listing files for a directory if it contains index.html? On my server (over which I have little control), directories are listed by default, so for mysite.com/images I get:

@Turnbaugh106

Posted in: #Security

On my server (over which I have little control), directories are listed by default, so for mysite.com/images I get:


Index of /images

Parent Directory
BirdsAreHere.png
CanYouSpot-AdBlank.jpg


etc. Is putting an index.html in that directory enough to prevent people listing the files, or is there still a way of getting at that list? Is it the same for my web root directory (mysite.com)?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

Putting an index.html file should solve that problem. But if you really want to be sure no one gets the directory list just place an .htaccess file in the root of your www directory with this line in it:

Options -Indexes


That will prevent Apache from listing the files of your directories.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme