--- loncom/auth/lonacc.pm 2020/07/19 16:41:27 1.159.2.8.2.2 +++ loncom/auth/lonacc.pm 2020/09/02 02:21:37 1.159.2.8.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: lonacc.pm,v 1.159.2.8.2.2 2020/07/19 16:41:27 raeburn Exp $ +# $Id: lonacc.pm,v 1.159.2.8.2.3 2020/09/02 02:21:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -599,7 +599,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