in reply to Re: About .htaccess
in thread About .htaccess

Actually i decided not to use an .htaccess file at all but instead i edited httpd.conf and put 2 directives in it:
<Directory D:/www/data/private> AuthType Basic AuthName "Private Area!" AuthUserFile D:/www/passwd.txt Require user Nikos </Directory>
<Location D:/www/cgi-bin/make.pl> AuthType Basic AuthName "Administrator Only!" AuthUserFile D:/www/passwd.txt Require user Nikos </Location>
So now iam protecting both the make.pl script and both my private folder! :-)

Iam still thibking though if i need this code:
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";
Any ideas?!?

Replies are listed 'Best First'.
Re^3: About .htaccess
by Nik (Initiate) on Jun 14, 2005 at 12:48 UTC
    And also does anybody knows whats changes must i do to transform the above 2 directives to Digest mode?
    I heard Digest mode has greater security that basic on which the password travels clear through the net.
    In Digest mode will it travel encrypted as well?