Barrier methods include over-the-counter methods and prescription methods. Condoms, sponges, and spermicides can be bought over-the-counter; the diaphragm and cervical cap must be prescribed by a doctor. All barrier methods are placed in the woman's vagina or over a man's erect penis (condoms). They prevent pregnancy by stopping sperm from reaching the womb.