If you think you attract bullying, I would like to offer an alternative approach. I know personally that it works.
Bullies bully to get a reaction. The victim gets mad, cries, or runs, retaliates, whatever. Even avoidance and ignoring is a reaction. Yes, it is kind of sick; bullies have their own set of problems. So you need to change how you react in these situations. This may seem unfair, because the onus is on the victim to change their own behavior. But it does work, which is the most important thing.
So what to do about it? Stop showing that you care so much about what other people do or say. Laugh it off, give them permission. Turn an insult into a joke, maybe join in the fun depending on the situation. Keep it cool and casual. It may take a little time to learn this - it is a social skill. You don't have to feel confident or have self-esteem or anything like that - you just have put on a little act. Once it starts to work, your confidence will grow on its own.
In the short term, the bully may try harder and the bullying will get worse That's how you know it's working. But once they figure out that they will not getting the reaction they want, it will stop. They will probably even come to respect you for it.
Keep in mind that everybody gets bullied once in awhile. Maybe someone will say something about your being a nerd, bald, ugly, skinny. It doesn't matter, these are just ways to figure out how to push your buttons. It's how you react that determines whether the bullying becomes an ongoing problem.
This is not a bulletproof solution. Deranged or psychopathic bullies will not respond to reasonable social cues, and you will need get those those people out of your life, maybe through legal means. But since you said this seems to be ongoing problem, this can help in many cases.
I know the pain of bullying. I wish you well, and hope this is helpful to you.