--- loncom/auth/lonacc.pm 2020/04/14 02:25:09 1.177 +++ loncom/auth/lonacc.pm 2020/08/10 03:22:54 1.178 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: lonacc.pm,v 1.177 2020/04/14 02:25:09 raeburn Exp $ +# $Id: lonacc.pm,v 1.178 2020/08/10 03:22:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -609,7 +609,13 @@ sub handler { } } if ($requrl=~m{^/+tiny/+$match_domain/+\w+$}) { - return OK; + if ($env{'user.name'} eq 'public' && + $env{'user.domain'} eq 'public') { + $env{'request.firsturl'}=$requrl; + return FORBIDDEN; + } else { + return OK; + } } # ---------------------------------------------------------------- Check access my $now = time;