Antibiotics can only treat bacterial infections. This includes strep throat and urinary infections. They will not treat viruses, such as colds, the flu, or mono (mononucleosis). Sometimes your doctor will prescribe an antibiotic to prevent an infection.