Re: htaccess question
| From: | David Robley | Date: | Tue, 26 Apr 2011 09:54:47 +0000 |
| Subject: | Re: htaccess question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312490@lists.php.net to get a copy of this message | ||
Al wrote:
> I want to restrict access to all files except one on my site and in parent
> dir. Thought this should work; but it doesn't.
>
> <Files *>
> Order Deny,Allow
> Deny from all
> Allow from xx.36.2.215
> </Files>
>
> xx.36.2.215 is actual value IP
>
> This file makes a captcha image and is called with
> <img src="makeScodeImg.php" alt="missing img file" /> in file
> /dir/control.php
>
> makeScodeImg.php is=> /dir/includes/makeScodeImg.php
>
> Works fine if "allow all" just for testing
>
> Thanks
Seems like more of a question for an apache group than a php group. Or you
might check the apache docs at:
http://httpd.apache.org/docs/2.2/howto/htaccess.html
http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow
Cheers
--
David Robley
To be, or not to be, those are the parameters.
Today is Sweetmorn, the 43rd day of Discord in the YOLD 3177.