Abstaining from sexual contact is the surest way to avoid the transmission of sexually transmitted diseases, including genital herpes.