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
Scott Thompson
Posts: 9
What the hell... your talking to yourself? hmmm
Options -Indexes
in htaccess is correct
If you enjoy programming, then checkout my coder profile http://www.coderprofile.com/coder/VBAssassin
Nikki Francis
Posts: 1
Hi,
Hope you guys can help me. I'm a complete website design novice - My first site I created in iweb (please don't sneer)![]()
I recently designed a site in Dreamweaver CS3, it runs fine on my mac. No broken links or browser issues and I set index.html as homepage.
I could get dreamweaver to connect to my server for FTP, so I used Cyberduck.
Uploaded fine but I get a page Index of/ then a list of my folders.
Thought it might be file permissions so changed them, no joy.
Any idea?
Thanks,
Nikki
Mike Crone
Posts: 27
Check with your host.
Some very few hosts use "home.html" as the index.html page.
Make sure everything is spelled correctly. On an Apache server
Index.html is different than index.html..
Mike...
WPDFD Forum Moderator
You must login to reply

