Over-the-counter treatments for UTI in pregnancy Phenazopyridine (Azo, Pyridium, or Uricalm) is an over-the-counter medication that helps ease urinary tract pain during a UTI. You can buy Azo at almost any pharmacy, and it is safe to use for a UTI during pregnancy.