>I think at one time there were women-only boarding houses that forbade male guests, at least there were in old movies, but that's about it.
These still exist in Japan: there's women-only apartment buildings where men are not allowed in at all (except maybe contractors). I think even delivery people aren't allowed in: they have to meet the resident outside. Women can be evicted if they bring a male guest or relative inside.
These are of course entirely voluntary; any woman who doesn't like this is free to just rent a normal apartment like anyone else, and there's plenty of those. I don't know if there's any price advantage to renting a women-only apartment.