use HttpAuthenticate CherryClass Root(HttpAuthenticate): function: def getPasswordListForLogin(login): if login=='mySecretLogin': return ['mySecretPassword'] return [] mask: def index(self): <html><body> Hello <py-eval="self.login">, I see you know the secret login and password ... </body></html> def unauthorized(self): <html><body> Hey dude, get out ! You're not allowed here if you don't know the login/password </body></html>
See About this document... for information on suggesting changes.