l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Aug 23 21:07

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] username / password authentication with apache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] username / password authentication with apache


Somebody already mentioned .htaccess which is the built in apache way to
do authentication.

I prefer the php/mysql variation which requires a _users_ database (or
something to that effect), with text fields for username, password, and
maybe an auto int just for bookkeeping.  this also allows you to make a
nice custom page with a form for the login info that matches your site
instead of a weird little login popup.  it also allows to catch and deal
with login errors better (e.g. print -> whoops try again, and display the
same login page beneath.  if e-mail address is in the database, or if
email address IS the login, then you do tricky things like having them ask
to be e-mailed their password (without your intevention if you've compiled
php --with-imap).

I could go on and on about the advantages of using your own homespun
authentication system.  If you use SSL you're 100% secure, but if you use
method=post in your login form, and you don't think the material is super
sensitive, you're probably ok running this type of thing on a regular

I have php code snips for all of this if you're intersted in taking a


On Fri, 23 Aug 2002, Peter Jay Salzman wrote:

> hola,
> i have a group of pages meant for some motorcycle buddies of mine across
> the country.
> it has peoples' names, phone numbers and addresses so that if any of us
> on a motorcycle trip find ourselves near another biker, we can have a
> free place to crash along with a hot meal and shower.
> i'd like to have the concept of "username" and "password" to protect
> these pages from non-members, since it's not really cool to have
> peoples' info out there for everyone to see.
> how can i use username/passwords to enable "logins" to protect these
> pages?
> thanks!
> pete
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.