fix block network for empty hostname