How did pre-modern prostitutes protect themselves against STDs and pregnancy?

by GaiusCivilis

What sort of protective measures were available to prostitutes in different periods of time? Or did prostitutes in fact get pregnant and sick a lot?

Cacotopianist

u/sunagainstgold collects many relevant answers here.