There are antiviral drugs like acyclovir, valacyclovir and famciclovir which can shorten the episodes and decrease their severity.
Acyclovir reduces the pain and number
of lesions in the initial case
of herpes and reduces recurrence. The ointment applied topically reduces pain, healing time and limits the spread. Though rare, herpes virus can cause inflammation of membranes and the cerebrospinal fluid surrounding your brain and spinal cord."
https://www.medhelp.