At 23:11 22.11.2002, conbud said:
>Hi. I spent the last 3 days looking through the apache docs to figure out
>how to disable directory listing. I can disable the directory listing to my
>images folder but then all the images on the site dont work. I tried using
>Allow from mydomain
>Allow from localhost
>Allow from

"Allow" specifies who can _read_ the folder and has nothing to do with
sending a directory listing or not.

 From the Apache FAQ, paragraph 19:

How do I turn automatic directory listings on or off? 
If a client requests a URL that designates a directory and the directory
does not contain a filename that matches the DirectoryIndex directive, then
mod_autoindex can be configured to present a listing of the directory contents.
To turn on automatic directory indexing, find the Options directive that
applies to the directory and add the Indexes keyword. For example:
<Directory /path/to/directory>
    Options +Indexes
To turn off automatic directory indexing, remove the Indexes keyword from
the appropriate Options line. To turn off directory listing for a
particular subdirectory, you can use Options -Indexes. For example:
<Directory /path/to/directory>
    Options -Indexes

To disable indexing completely, simply omit the "Indexes" option on the
document root directory.

What happens if e.g. the /images/ directory is accessed, a "Forbidden"
response is sent:

You don't have permission to access /images/ on this server.

   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to