|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi all,
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
you need to use the 'Satisfy any' directive
in your .htaccess you need the following lines.. Allow from <domain.com> Require valid-user Satisfy any Satisy any will say if it's allowed from <domain.com> it's ok OR if they are a valid-user (from anywhere) it's ok too. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
adam wrote:
> you need to use the 'Satisfy any' directive > > in your .htaccess you need the following lines.. > > Allow from <domain.com> > Require valid-user > Satisfy any > > Satisy any will say if it's allowed from <domain.com> it's ok OR if > they are a valid-user (from anywhere) it's ok too. > Thank you so much! I've been searching for this little line for days now ![]() Cheers! |
|
![]() |
| Outils de la discussion | |
|
|