I have heard that this does work, and I've also read suggestions to gag/make yourself throw up etc. Mind you, I have no idea whether this was based on any actual research or experience. I think the idea is to essentially puncture the rapist's state of power-based arousal by introducing an element of disgust.