Add block ip middleware