How to Prevent the Spread of Infectious Diseases