I'm surprised no one has ever developed a tampon like product that's safe for the female user but would impart serious and painful damage to any male components involved in a rape attempt. That wouldn't affect the (only slightly less serious) improper fondling and harassment but I'd think it would go a long way towards reducing rapes.
Well, there are chastity belts...safe for the woman, but not exactly comfy. Not all of them merely prevented "you-know-what" entirely; some were made so that you could
try it, but you'd get hurt real bad. Chastity devices have been made- and are still made- for men, as well as women... a "hardware-based" solution.
The problem with this, though, is that coitus is only part of it- if that can't be done, the rapist will still be determined to humiliate- and hurt- the victim.
I think in a situation like submarine duty, the most effective thing would be establishing a culture where it is NOT OK to keep quiet or circle the wagons... a woman on a ship ought to be able to holler "Rape!" and have every other man on the ship rush to her aid. After the rapist is dealt with (I think keel-hauling would be nice for a start), the victim should not be treated like damaged goods, or believed to have been "asking for it", or thought of as a tattle-tale or a weakling.
This mentality where the
victim is blamed or ostracized, where silence is the rapists's ally... that's the main problem, and the one that's easier to fix than somehow guessing who is potentially a rapist.
But it's an ancient code... good luck to any commander who has to make this work on a sub!!