Computational modeling of social networks suggests that vaccination programs are more successful in containing disease when individuals have access to local information about disease prevalence.