: 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:
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)?
More posts by @Turnbaugh106
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.