How did people who worked in Brothels or sex wokers in general prevent the spread of STDs and pregnancy?

by FightClubSignUp

How did they prevent pregnancy pre contraception and the spread of STDs. I know people had used intestinal tracts as condoms and such but was there methods the workers or even women in general could take to lessen the chances of unwanted pregnancy or disease ?

Resubmitted the question with a more clear and better worded title.

muninandhugin

u/sunagainstgold answered a similar question about a year ago [here] (https://www.reddit.com/r/AskHistorians/comments/9gacbj/wouldnt_a_visit_to_a_brothel_in_preantibiotic/e635rz6/) that may interest you.