That's actually a standalone issue, which tbh doesn't have anything to do with OP's example if you ask me.
Since if you wear too exposed, you're essentially walking around telling everyone "come". Ofc I am not saying raping is an acceptable thing, it isn't but when you get people staring at you, trying to hook you up, or you have all of the above which attracts yourself the rape case while everything is totally under your own control like clothing, where you go and time of the day etc, then you really only have yourself to blame.
While on the other hand, being abused online is another thing since most if not all of those cases, they all start with bickering on trivial matters and before it turns bad. Which for the victims, they have limited control over the issue since we all know people on the internet can go berserk even when there is clearing nothing wrong.
Rapes mostly don't happen beyond your control, unless you're simply too young to have enough self awareness or protection, otherwise if you got raped while it's definitely not your fault but dare I say, it begins with you.
Anyway, for the verbal abusing, a few things.
- The online tough guys need to grow up.
- Having a few millimeters thick skin really won't hurt and it helps a great deal.
- Learn to mute, ignore and report.
- Don't participate online biatching if you can see it's going too far, let it die.