Girls- why would my ex continuously block and unblock me?

She dumped me for her current bf over a year ago. But I've been blocked probably 7 times and unblocked randomly. She would block me for a couple of months and then unblock me. She then would block me a month or so again. She is still with him. She recently messaged me after not talking for 10 months. I then messaged her on my own a few weeks later, but she just reblocked me. Then a month or so later, I'm unblocked again.
Girls- why would my ex continuously block and unblock me?
Post Opinion