Herpes sores break the skin, which is the first defense against other infections. HIV weakens the person's ability to fight other infections. Thus, a person with HIV who gets herpes may have more severe herpes symptoms that are more difficult to treat. Avoiding sexual contact with people who have symptoms is an immediate, but only partial answer because herpes virus may be shed when the infected individual is without symptoms. Cesarean section is often recommended when primary or recurrent herpes II lesions occur in late pregnancy, since the baby can be infected when going through the mother's birth canal.
Abstinence is the only sure way to avoid STDs.
Try to limit your exposure to STDs. Unprotected sexual activity increases your chance of exposure and infection. Use barrier protection, like a condom. Look at your partner before having sex. If you see any sign of an infection such as rashes, sores, discharge or swelling, stop and talk about the importance of checking for an STD before having sex.