The treatment of herpes depends on the type. For herpes simplex virus (HSV), antiviral medications can be used to shorten the duration and severity of outbreaks. These may include acyclovir, valacyclovir, or famciclovir. Keeping the affected area clean and dry is important. Applying topical creams or ointments may help relieve pain and itching. Avoiding triggers such as stress, sunlight, and certain foods can reduce the frequency of outbreaks. For herpes zoster (shingles), antiviral drugs should be started early to reduce pain and complications. Pain medications and topical treatments may also be prescribed. Rest and a healthy diet can support the immune system and aid in recovery. Consult a doctor for proper diagnosis and treatment.