consolidate IP checks into single plugin