On Tue, 24 Aug 2004 01:54:10 +0200, Jörg Ellermann
<j.ellermann DeleteThis @tu-bs.de> wrote:
>I want to prevent access to a specific directory with a .htaccess file. Only the
>local PHP module should be allowed to access that directory.
>
>I've put a .htaccess file in the directory:
>
><Directory />
>Order Deny,Allow
>Deny from all
>Allow from (server's address here)
></Directory>
>
>but it does not seem to work, though. By the way, would "localhost" be a legal
>address in this directive?
>
>Thanks,
>Jörg
watch out: .htaccess is read at each request, so can give a
degradation in performance.
So IMHO it is best used by the maintainer of the directory it is in.
The server owner should put all his stuff in httpd.conf, which is only
accessed on server startup.
..
frgr
Erik<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Restrict access to localhost only