Add support for allowed_useragents and allowed_networks configuration.