How Do Herpes Drugs Work? Herpes medications like valacyclovir, acyclovir and famciclovir belong to a class of medications called antiviral drugs.None of the antiviral drugs on the market today can cure herpes. However, consistent use of an antiviral drug can make living with herpes much easier by...