However, the Torah does not present Dina's experience as what was coming to her at all. The man who took her and abused her (see Rashi on that) is held fully culpable. In fact, the whole town is held culpable for allowing her abduction to happen. Dina brothers who plotted to kill out every single man justify their extreme measures to their father, and he has no answer to them.
If you bear in mind Dina's age and the Torah's timeline, not to mention the fact that her rapist calls her "yalda," a young girl, you may remember that she was only around seven. That's the age that Sarah is given for beauty in the breakdown of her years, and the reason for the child's age to be singled out is precisely because it is a beauty without suggestions of sensuality. Sarah, of course, was taken, as well, but she was a mature woman with full feminine attractions at that point. And in her case, no one has dared suggest that she brought the attention upon herself.
A notable common experience for both Dina and Sarah, according to Midrashm is being hidden in a box. In both cases, it didin't work. Avraham tried keeping his wife's beauty hidden, and Yaakov kept her out of sight of his brother, lest he want to take her as a wife. Avraham's ruse didn't work, as Sarah was discovered. In the case of Yaakov, the ruse seemed to work, as Esav didn't see Dina; however, Chazal are critical of what he attempted to do, and said there was an aspect of punishment for that in Dina's experience.
Now to take another view on this, perhaps we really should be thinking outside the box. The solution to protecting one's virtue is not staying hidden away altogether. Going to that extreme tends to backfire. And as for the danger of going out there, yes it exists, but it is ludicrous to say that a seven-year-old girl was asking to be attacked. In fact, no female or any age or state of dress ever asks to be attack.
After I posted this, my husband sent me a link to another post that puts a positive spin in Dina's going out: יצאנית למעליותא