Epidemic spreading and immunization with identical infectivity