You do not want people to be able to browse through directory listing? Server to prevent directory contents to be listed. To fix it:
IndexIgnore *
Where as * is a wildcard that matches all files.
if you dont want images? To fix it:
IndexIgnore *.jpg *.png *.gif
And conversely, if your server is setup to prevent directory listing, but you want to list the directories by default, you could simply throw this into an htaccess file the directory you want displayed:
Options +Indexes
IndexIgnore *
Where as * is a wildcard that matches all files.
if you dont want images? To fix it:
IndexIgnore *.jpg *.png *.gif
And conversely, if your server is setup to prevent directory listing, but you want to list the directories by default, you could simply throw this into an htaccess file the directory you want displayed:
Options +Indexes
0 comments:
Post a Comment