Rule #2 Do not have unprotected sex. A surefire way to avoid getting sexually transmitted infections is to be in a long term, mutually monogamous relationship with a healthy partner. For people whose sexual behaviors put them at risk for STIs, always using a male latex condom correctly can reduce the risk. Remember: no form of protection besides abstinence works 100% of the time.