code: def is_valid_endpoint_host(interfaces, endpoint):
          
          result = urlparse(endpoint)
          hostname = result.hostname
          if hostname is None:
              return False
  
          for interface in interfaces:
              if interface == hostname:
                  return False
  
          return True
docs: An endpoint host name is valid if it is a URL and if the
          host is not the name of a network interface.