in reply to Re: About .htaccess
in thread About .htaccess
<Directory D:/www/data/private> AuthType Basic AuthName "Private Area!" AuthUserFile D:/www/passwd.txt Require user Nikos </Directory>
So now iam protecting both the make.pl script and both my private folder! :-)<Location D:/www/cgi-bin/make.pl> AuthType Basic AuthName "Administrator Only!" AuthUserFile D:/www/passwd.txt Require user Nikos </Location>
Any ideas?!?print header(-status=>'401 Unauthorized', 'WWW-Authenticate'=>'Basic r +ealm="Restricted Games"') unless $ENV{REMOTE_USER}; exit unless $ENV{REMOTE_USER}; #Restricted code - this code will not run unless user is authenticated +. Test $ENV{REMOTE_USER} for user-level control print header(), "Authenticated User: $ENV{REMOTE_USER}\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: About .htaccess
by Nik (Initiate) on Jun 14, 2005 at 12:48 UTC |