Server Side: Apache: stopping directory listings
started by Kestrel on Sep 2, 2004 — RSS Feed
Joe Gillespie
Posts: 528
Does anyone know the htaccess code to stop users listing folders and files in directories on the server?
Joe Gillespie
Posts: 528
You don't need to use htaccesss for that. If you can't access your server config files, just make sure that every directory has an index.html file.
Joe Gillespie
Posts: 528
No, there's a way to do it with a line of code. I've seen it once before, but can't remember it.
At the moment I've got index files in every folder - what a waste of bytes!
I know there's a way. Maybe a Google search will bring it up.
EDIT - found it! Try this:
http://help.hardhathosting.com/question.php/83
You must login to reply


