You are here: Re: Restricting access with .htaccess « All PHP « IT news, forums, messages
Re: Restricting access with .htaccess

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация