Nik has asked for the wisdom of the Perl Monks concerning the following question:
AuthUserFile .htpasswd AuthType Basic AuthName "This is a secret folder" require nikos
Both files are residing to the cgi-bin folder and inside my games.pl i use this code:nikos:encrypted MD5 text
to pop the http auth dialog box. I give the user and pass but never actually the data flow of restricted code is being executed.# Checking User Credentials print header(-status=>'401 Unauthorized', 'WWW-Authenticate'=>'Basic r +ealm="!!! Special Private Area !!!"') unless $ENV{REMOTE_USER}; exit unless $ENV{REMOTE_USER}; # Restricted code - this code will not run unless user is authenticate +d. Test $ENV{REMOTE_USER} for user-level control print header( -charset=>'iso-8859-7' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: About .htaccess
by CountZero (Bishop) on Jun 12, 2005 at 08:23 UTC | |
by Nik (Initiate) on Jun 12, 2005 at 14:03 UTC | |
by CountZero (Bishop) on Jun 12, 2005 at 15:35 UTC | |
|
Re: About .htaccess
by monarch (Priest) on Jun 12, 2005 at 16:14 UTC | |
by Nik (Initiate) on Jun 14, 2005 at 10:25 UTC | |
by Nik (Initiate) on Jun 14, 2005 at 12:48 UTC | |
|
Re: About .htaccess
by kiat (Vicar) on Jun 12, 2005 at 13:21 UTC |