pub fn validate_config(config: &Config) -> Result<()>
Checks the URL policy before anything is sent over the network.