check if allowed_ips before calling split