The only safe sex is no sex, most healthcare providers say. But certain precautions and safe behaviors can reduce a person's risk of contracting a sexually transmitted disease.