implemented IP filtering