Block by country script

if(!context.onPrem){
      var util = module('Utils');
      var country = util.getIpCountryCode(context.ipAddress);
      if(country != "US"){
      policy.Locked = true;
      }
}