OK, the solutions that shane gives in the list were:
First by shane
Any section rendered to.shtml, you can't stop people
from viewing (unless you lock out the directory via
apache, which slash doesn't inherently do).
From a perl script you can lock people out:
ie:
#locksomeone out who's seclev is too low
my $user = getCurrentUser();
redirect('/users.pl') if (($user->{is_anon}) || ($user->{seclev}
#locksomeone out who doesn't have a particular user's param
my $user = getCurrentUser();
redirect('/users.pl') if !defined $user->{'someparam'};
etc etc. there's probably add'l ways to do it, some
more efficient then others. but this should give you somewhere
to look into further.
Second by shane
Also, there is yet another way to lock people out,
and this (imho) is pretty cool.
You write your own apache handler to lock people
out who don't have a specific cookie.
At first this sounds horrific, but if you look at the
Slash code, they've already done 95% of the work for you
with their Index Handler code.
I've got one that locks out a whole directory if
the user isn't logged in. But you could expand on it
pretty easily.
Listserv (Score:2)
[Slashcode-general] Requiring Login? [geocrawler.com]
lottadot [lottadot.com]
Re:Listserv (Score:2)
OK, the solutions that shane gives in the list were:
First by shane
Any section rendered to .shtml, you can't stop people
from viewing (unless you lock out the directory via
apache, which slash doesn't inherently do).
Second by shaneFrom a perl script you can lock people out:
ie:
#locksomeone out who's seclev is too low
my $user = getCurrentUser();
redirect('/users.pl') if (($user->{is_anon}) || ($user->{seclev} #locksomeone out who doesn't have a particular
user's param
my $user = getCurrentUser();
redirect('/users.pl') if !defined $user->{'someparam'};
etc etc. there's probably add'l ways to do it, some more efficient then others. but this should give you somewhere to look into further.
Also, there is yet another way to lock people out, and this (imho) is pretty cool.
You write your own apache handler to lock people out who don't have a specific cookie.
At first this sounds horrific, but if you look at the Slash code, they've already done 95% of the work for you with their Index Handler code.
I've got one that locks out a whole directory if the user isn't logged in. But you could expand on it pretty easily.
If anyone wants it I'll put a tarball up.
Parent