On Mon, May 23, 2011 at 11:52 AM, Al <n...@ridersite.org> wrote:

> How can I prevent access to all files in a directory except one with an
> htaccess file.
>
> I've tried several approaches found with Googling; but, none seem to work.
>
> e.g.,
> <FilesMatch "^(makeScodeImg.php)">
> Order Allow,Deny
> Deny from all
> </FilesMatch>
>
> This seems to me as it should deny to all except makeScodeImg.php
>
> Thanks
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Also don't forget to enable override on the directory, otherwise .htaccess
wont be read at all...

http://httpd.apache.org/docs/2.0/mod/core.html

--
The trouble with programmers is that you can never tell what a programmer is
doing until it’s too late.  ~Seymour Cray

Reply via email to