implemented client ip restriction methods