On a windows account i am running some php scripts, therefore i have set Directoy Indexes to ON & added default.asp & index.php to the indexes list for the domain.
Now if i browse to a folder that has an index.php or default.asp file
eg www. mysite.com/
the default or index file will load.
eg mysite.com/index.php
My prob is that if i browse to say www. mysite.com/img/
which has no default.asp or index.php then the page loads displaying the list of files that are in the img folder.
I donot want the list of files displayed, as i have not set an index for that folder shouldn't it display "Directory Denied" ??
How can i fix this? do i have to set an index page for every possible folder to prevent folder browsing?
Now if i browse to a folder that has an index.php or default.asp file
eg www. mysite.com/
the default or index file will load.
eg mysite.com/index.php
My prob is that if i browse to say www. mysite.com/img/
which has no default.asp or index.php then the page loads displaying the list of files that are in the img folder.
I donot want the list of files displayed, as i have not set an index for that folder shouldn't it display "Directory Denied" ??
How can i fix this? do i have to set an index page for every possible folder to prevent folder browsing?