function for whitelisting IPs