code: def validate_ip(self):
          
          if self.request.app.get('_check_ip', False):
              ip_address, accept = self.check_ip()
              if not accept:
                  raise web.HTTPUnauthorized()
docs: Check ip if that is needed. Raise web.HTTPUnauthorized for not allowed hosts.