improve ban ip segment