Generic Famvir is used for treating herpes zoster infection (shingles). It is also used to treat recurring herpes skin infections in patients who also have HIV infection. Famvir is used in patients who have a weakened immune system to treat recurring cold sores and to treat or suppress recurring genital herpes.