W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1997

Re:Disallowing Directory Listings

From: Alexandre Rafalovitch <alex@access.com.au>
Date: Wed, 29 Jan 1997 09:31:49 +1000
Message-Id: <v03010d02af143beae44f@[]>
To: www-jigsaw@www10.w3.org
>darrell starnes writes:
> > I don't like users to be able to list some directories.  I don't know if
> > there is a different
> > way to disallow directory listings, I usually set the index to a
> > non-existant file so that
> > directory listings fail which has the same effect as not allowing
> > listings. I
> >
> > s there a different way to do this? Should there be an attribute in
> > DirectoryResource to allow or disallow directory listings?
>I guess that you can set the index to some none existing file (the
>error message will look strange, but it will work)

What about creating a dummy resource to set as index file. It would be
pretty easy to write one and it could just return user specified string.
eg. "You cannot list this directory. Got a problem?" Of course it should
set the return code to be 'access forbidden' too.

The only problem here is that reindexing of the directory would remove that
resource. :-{ Something should really be done about it....

Ps. This is an extension of 'directory lister' idea of a while ago.

Received on Tuesday, 28 January 1997 17:32:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:30 UTC