You are here: Re: scheme for access control « PHP Programming Language « IT news, forums, messages
Re: scheme for access control

Posted by Colin Fine on 10/29/06 18:11

Rik wrote:
> laredotornado@zipmail.com wrote:
>> Hi,
>>
>> Based on some info on this newsgroup, I'm trying to password protect a
>> directory of both PHP, HTML, and image files. The web server is
>> Apache 2 and PHP is 4.4.4. I created this .htaccess file
>>
>> RewriteCond %{REQUEST_FILENAME} -f
>> RewriteCond %{REQUEST_FILENAME} !^accesscontrol.php
>> RewriteRule ^(.*?)$ accesscontrol.php?file=$i&%{QUERY_STRING} [NC,L]
>
> Hey, I know that code from somewhere :-)
>
> It works here, be sure to start you're .htaccess with:
> RewriteEngine On
>
> Ans that mod_rewrite is offcourse enabled etc.
>
> And this:
> RewriteCond %{REQUEST_FILENAME} !^accesscontrol.php
> should be:
> RewriteCond %{REQUEST_FILENAME} !^accesscontrol\.php

This looks to me like a much more complicated solution than using
mod_auth_external.

Colin

 

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

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