Treatment of Herpes Simplex Virus Usually acyclovir, valacyclovir, or famciclovir For keratitis, topical trifluridine (typically in consultation with an ophthalmologist) Treating primary HSV infection with drugs, even if done early, does not prevent the possibility of recurrence.