version 1.11, 2004/03/31 17:42:21
|
version 1.12, 2004/04/26 00:07:29
|
Line 25
|
Line 25
|
# |
# |
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
# (lonacc: Cookie Based Access Handler |
|
# 5/21/99,5/22,5/29,5/31,6/15 Gerd Kortemeyer) |
|
# 6/16,6/18,7/3, |
|
# 6/30/00 Gerd Kortemeyer |
|
|
|
package Apache::lonracc; |
package Apache::lonracc; |
|
|
Line 60 sub handler {
|
Line 56 sub handler {
|
$r->log_reason("Spoof request from ".$ENV{'REMOTE_ADDR'}); |
$r->log_reason("Spoof request from ".$ENV{'REMOTE_ADDR'}); |
return FORBIDDEN; |
return FORBIDDEN; |
} |
} |
|
if ($reqhost eq 'localhost.localdomain') { |
|
return OK; |
|
} |
my $readline; |
my $readline; |
my $lontabdir=$r->dir_config('lonTabDir'); |
my $lontabdir=$r->dir_config('lonTabDir'); |
{ |
{ |