Server Side: Apache: stopping directory listingsstarted by Kestrel on Sep 2, 2004 — RSS Feed
Does anyone know the htaccess code to stop users listing folders and files in directories on the server?
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.
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:
What the hell... your talking to yourself? hmmm
in htaccess is correct
If you enjoy programming, then checkout my coder profile http://www.coderprofile.com/coder/VBAssassin
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.
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..
WPDFD Forum Moderator
You must login to reply