The only prescriptive, airtight solution is surgically modifying males so that they can't rape any more. Not a fan, but I suppose that depends on how certain we have to be that rape isn't occurring. How important is it to you?
We could do a halfway thing where we install cameras in every room of every house to gather evidence against rapists.
The latter is what we do with most digital communication platforms right now in order to try and track down CSAM. Durov got arrested for not paying people specifically to watch those cameras and call the police.
From the indictment:
> JUNALCO's cybercrime unit (J3) was informed of Telegram's near-total lack of response to judicial requests, particularly by OFMIN (National Office for Minors). Other French investigation services, prosecutors, and Eurojust partners, notably Belgian, shared the same observation. This led JUNALCO to open an investigation into potential criminal liability of the messaging service's leaders.
Your solution only works if you think that women can't and don't rape people, including other women. Reality strongly disagrees.
Ultimately it all comes down to freedom vs security. We could force people to have surgery and lock them indoors to keep them safe, or we can accept putting ourselves in some amount of risk in exchange for giving ourselves more freedom.
This is what you sound like to me.