diff --git a/Root/makekey.hac b/Root/makekey.hac index f032c96f..1ba50f12 100644 --- a/Root/makekey.hac +++ b/Root/makekey.hac @@ -1,10 +1,11 @@ -if ( checkAddress()==false ) return; -if ( checkAuth()==false ) return; - -if ( req.data.value!=null ) { - res.write ( Packages.helma.util.MD5Encoder.encode(req.data.value) ); -} else { - res.write ( '
' ); +// strictly limit access to localhost: +if ( req.data.http_remotehost!="localhost" && req.data.http_remotehost!="127.0.0.1" ) { + app.__app__.logEvent( req.data.http_remotehost + " tried to access makekey"); + return; } +if ( checkAuth()==false ) return; + +createAuth(); +