[4936] in WWW Security List Archive
Re: After authentication in htaccess
daemon@ATHENA.MIT.EDU (Eric Anderson)
Fri Mar 28 12:08:49 1997
Date: Fri, 28 Mar 1997 06:55:14 -0800 (PST)
From: Eric Anderson <keric@fv.com>
To: Rucelmar Reis <bamer21@netway.com.br>
cc: www-security@ns2.rutgers.edu
In-Reply-To: <333A88D6.7C7E@netway.com.br>
Errors-To: owner-www-security@ns2.rutgers.edu
> In my page index.html from directory "pages" (pages/index.html) I get
> the authentication for .htaccess, and after user type your name and your
> password, has access at directory.
>
> Can I know who is my user?
> How?
> Because, if I know who is my user, after the authentication I can return
> the especifc page to user (your owner page).
>
> Directory:
>
> .htaccess
> index.html
> bob.html
> dany.html
> russel.html
> liza.html
>
> If user is Bob, I return page bob.html, and if user russel, I return
> russel.html ....
>
> Please, if you have the answer, tell me, ok?
You'll have to do it in a CGI script, using a concatenation of
$ENV{'REMOTE_USER'} and ".html"..
--
---------------------------------------------------------------
Eric Anderson <keric@fv.com> First Virtual Holdings
Unix System Administrator 11975 El Camino Real, Suite 200
<http://www.fv.com/> San Diego, CA 92130
---------------------------------------------------------------