Drugs designed to resemble pathogen’s cellular targets could prevent infection