Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop listing directory

Status
Not open for further replies.

rs51

Technical User
Oct 13, 2001
163
PT
hi
i'm new to apache and want to know what can i do to avoid someone listing my directory:
imagine i've a web page at Now, if someone enters can access my whole directory and i dont want that to happen.
What can i do?
thanks in advance
 
i use a index.html and it works
thanks!
 
Or you could just drop a .htaccess file in the directory, with the following


Code:
---
Options -Indexes
---

which would stop directory listing from occuring in that directory and all sub-directories.

(Assumes you have
Code:
AllowOverride Indexes
at a minimum for that directory)

Beau
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top