Studies in several nations show that treating people before they fall ill can curb the spread of disease.