|
Posted by Sjaakie on 05/23/05 12:25
Sjaakie wrote:
> Hi all,
>
> Although this is not a specifically PHP related question, I'm sure you
> guys/galls can help me out with this:
>
> I wish to restrict access to a part of my website using htaccess. So far
> I managed to restrict either by IP or by user. Is it possible to use
> them in this order
>
> 1. restrict by IP, if allowed then display page, if denied then ..
> 2. validate username and password (.htpasswd)
>
> not sure if this is possible at all, and how to put this in the
> .htaccess file.
>
> TIA
To anyone interested, this did the trick:
Allow from <domain.com>
Require valid-user
Satisfy any
Navigation:
[Reply to this message]
|