Herpes simplex 1 (HSV-1) is usually known as oral herpes. Herpes simplex 2 (HSV-2) is usually genital herpes. Both strain of herpes could spread orally and or genitally.
The most effective way to prevent these viruses from spreading is to have safe sex, take medication if needed, and to date someone who already has the virus.