Aciclovir eye ointment is used to treat eye infections caused by the herpes simplex virus. It works by interfering with the growth of the virus and this stops the infection. Aciclovir is more commonly used in a cream to treat cold sores (canker sores) around the lips and mouth.