Topical antibiotics work by: