code: def filter_factory(global_conf, **local_conf):
      
      conf = global_conf.copy()
      conf.update(local_conf)
  
      def check_last_ip(app):
          return LastIpCheck(app, conf)
      return check_last_ip
docs: Returns a WSGI filter app for use with paste.deploy.