file listings
Posted by: theMezz
Posted on: 2005-07-14 11:20:00
How can I make a file NOT show when someone see's a files listing?
here:
http://themezz.net/
I do not want header.html to show
anyway to hide that ??
thanks
Posted by: theMezz
Posted on: 2005-07-14 11:20:00
How can I make a file NOT show when someone see's a files listing?
here:
http://themezz.net/
I do not want header.html to show
anyway to hide that ??
thanks
Posted by: scjessey
Posted on: 2005-07-14 11:45:00
In reply to:How can I make a file NOT show when someone see's a files listing?
I'm not quite sure what you are trying to say. Are you asking how to avoid having a directory listing being displayed? If that is the case, the easiest way around it is to have an index page, like index.html or index.php in each folder you are trying to protect.
Posted by: decswxaqz
Posted on: 2005-07-14 11:47:00
To disallow a directory listing although, just place a blank index.html file in the directory.
To disallow one file (type) then you need to use htaccess
IndexIgnore *.gif *.jpg
Will stop showing any gifs or jpgs in the directory listing.
I guess this could be used for your problem
IndexIgnore header.html
but haven't tried it.
EDIT: A note that this will stop header.html appearing in all of your child folders as well. If this is a problem, then you can put the following htaccess file in the folders where you want header.html to appear
Options Indexes
Posted by: theMezz
Posted on: 2005-07-14 12:45:00
thanks I found what I need..
I just used
IndexIgnore *.html
in a htaccess file
thanks
Posted by: theMezz
Posted on: 2005-07-14 12:45:00
JUST want I wanted
thanks