Indirect protection that occurs when sufficient immunity within a population reduces transmission of an infectious agent, making exposure less likely for others; the level required depends on the pathogen and how effectively immunity limits transmission.