httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] Blocking dot-star ("hidden") files/directories
Date Wed, 05 Jan 2005 21:40:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ryan Sommers wrote:
| I've been attempting to come up with some set of
| <Directory><DirectoryMatch><Files><FilesMatch> directives that will
block
| Anything of the form:
|
| .*
| .*/*
| */.*/*
|
| Basically, block all hidden (.*) filename and block all files within .*
| directories.
|
| Thus far, the exact solution has eluded me.
|
| <FilesMatch "^\.[^.]">
|
| works for the files aspect. But I can't come up with anything for the
| directory side.

<FilesMatch ^\.>
order deny,allow
deny from all
</FilesMatch>
<DirectoryMatch ^\.>
order deny,allow
deny from all
</DirectoryMatch>

- --
I should have liked, I do confess, to have had the lightest
license of a child, and yet been man enough to know its value.
~    Charles Dickens (A Christmas Carol, Stave Two)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB3F7RXP03+sx4yJMRAgQNAJ9LqtcWt7/1EY1cjghPKVfXWAK0qACfa2CK
bzkRAgXoJYWxFJYN5Iv17/A=
=uyya
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message