Shots enable people to fend off infection