code: def is_path_protected(path):
      
      protected = True
  
      for exclude_path in TERMS_EXCLUDE_URL_PREFIX_LIST:
          if path.startswith(exclude_path):
              protected = False
  
      for contains_path in TERMS_EXCLUDE_URL_CONTAINS_LIST:
          if contains_path in path:
              protected = False
  
      if path in TERMS_EXCLUDE_URL_LIST:
          protected = False
  
      if path.startswith(ACCEPT_TERMS_PATH):
          protected = False
  
  
      return protected
docs: returns True if given path is to be protected, otherwise False
  
      The path is not to be protected when it appears on:
      TERMS_EXCLUDE_URL_PREFIX_LIST, TERMS_EXCLUDE_URL_LIST, TERMS_EXCLUDE_URL_CONTAINS_LIST or as
      ACCEPT_TERMS_PATH