See it from the attacker's point of view
If you're more of an offensive player, you know that one little thing you love doing, like that painful nudge, or stepping on that foot, which drives your opponents mad? If that sounds like you, then you've certainly met the annoying and aggressive defender who tries to throw you off for the whole 90 minutes of the game and beyond. The one who taps your ankles, gives you that little shove with their elbow before leaving, drives their shoulder into you during duels, pulls on your shirt and sometimes insults you. I'm sure that sometimes, in the heat of the moment, you feel more like a karateka than a football player.
But we've all heard that one sentence that my coaches have repeated to me 100 times or more (I hog the ball, I love doing stepovers and it sometimes really annoys opponents): “ZOHRAAAAAA, the answer is out on the pitch!” That's all well and good but it's easier to say than to do. That's not to say they're wrong. And my way of avoiding reacting to hits, was to call the referee over and ask them to put an end to the situation. Because we don't all wear the same shirt but... you know the rest!