Mischa Barton
Mischa BartonAntony Jones/Getty Images

In a case of revenge porn, former Dancing with the Stars fame Mischa Barton's has won the legal battle against her ex-boyfriend. Her lawyer took to the social media to announce the news.

Also read: Mischa Barton sex tape 'being shopped around' with hefty price tag; Hollywood sex tape broker confident 'it's clearly Mischa'

Lawyer Lisa Bloom posted a smiling photo of her and Mischa on Twitter. "COURT VICTORY today with Mischa Barton. Distribution of the explicit images banned, ex stays 100 yards away forever," she captioned it.

According to several reports, a sex tape of the 31-year-old actress and her ex (with whom she was in a brief relationship) has allegedly been circulated in the Hollywood porn valley with a hefty price tag in March 2017.

According to Metro, the OC alum said, "Today was major not just for me but for women everywhere who get to decide what images of their body are shown.

"I hope that this case helps set a precedent for women everywhere that they should stand up for their rights. I'm happy to be putting this behind me and it's been a bit of an ordeal and a crazy experience. Today we have justice and it feels good."

The Los Angeles Superior Court banned the distribution of the explicit images and also granted a restraining order against her ex-boyfriend.

Barton's lawyer also said in a statement:  "I am proud to declare victory for Mischa. She did this not just for herself, but for all women and girls. Mischa wants everyone to know that we have the right to control our own bodies and decide whether or not to have explicit photos out there for the world to see. If a woman wants to do that, fine. If she doesn't, fine. The choice is hers and hers alone."

"This is a painful situation and my absolute worst fear was realised when I learned that someone I thought I loved and trusted was filming my most intimate and private moments, without my consent, with hidden cameras,' Mischa told in a press conference in March. "Then I learned something even worse, that someone is trying to sell these videos and make them public."