🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #445

Re: password protecting a directory

#445
From: Michal Mosiewicz
Date: Mon, 21 Jul 1997 17:57
24 lines
1587 bytes
Kurt wrote:
>[...]
> Is there anyway to password protect a directory of webpages with Perl? I
> know that you can do it with .htacess and so forth. The only drawback
> that I can see with this is that, although one can protect a directory,
> it is limited to the use of 'one' password for the directory.

That is not true. You may use AuthUserFile with many user/password
entries. You may add this entries using a perl program if you wish. The
format is very simple. Also, if you use apache you may use mod_perl to
write a customised perl authoriser.

> 1. In Javascript one can use the 'onLoad( ) function to invoke an
> action. Is there anyway to do this with Perl?

Javascript is run on the client side. Currently, it is not possible
(yet?) for perl.

Mike

-- 
********     MEMBER OF THE INTERNATIONAL PROGRAMMERS GUILD    ********
WWW: http://www.lodz.pdi.net/~mimo  tel: Int. Acc. Code + 48 42 148340
add: Michal Mosiewicz  *  Bugaj 66 m.54 *  95-200 Pabianice  *  POLAND
Technical Details
Message-ID: <33D3A317.1F6694D3@lodz.pdi.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.icm.edu.pl!localhost!nobody
References: <33D290AD.A3B47A5A@rfpi.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.icm.edu.pl!localhost!nobody
From: Michal Mosiewicz <mimo@lodz.pdi.net>
Newsgroups: pl.comp.lang.perl
Subject: Re: password protecting a directory
Date: Mon, 21 Jul 1997 19:57:43 +0200
Organization: Just me at home
Lines: 24
Message-ID: <33D3A317.1F6694D3@lodz.pdi.net>
References: <33D290AD.A3B47A5A@rfpi.com>
NNTP-Posting-Host: mimo.lodz.pdi.net
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (X11; U; Linux 2.0.30 i586)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit