'The O.C.' star had been seeking to halt an ex-boyfriend from trying to "sell sex tapes of her in an act she and her legal team had deemed 'revenge porn'."

Mischa Barton and her lawyer Lisa Bloom were able to declare victory in the actress' court battle with an ex yesterday after the Los Angeles Superior Court banned the distribution of explicit images of Barton and ordered that the ex stays 100 yards away forever.

In a statement given to PEOPLE on Monday, Bloom said: "Mischa did not consent to the release of any such photos or videos. We went into court and obtained court orders barring anyone from trafficking in images like this of Mischa."

"Today we have won an important agreement, which permanently blocks the dissemination of these images. All explicit photos and videos of Mischa must be handed over to me immediately. Her ex must stay 100 yards away from her today, tomorrow, and forever. And the court will retain jurisdiction over the case in case we need further enforcement."

"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."

Barton publicly addressed the existence of the sex tape in March, retaining Bloom as a lawyer and seeking the action of the court before appearing on Dr. Phil where she described the tapes as an act of "complete emotional blackmail" by her ex.

"It was a crime," she said. "It is a serious crime to tape people without their knowledge like that and I had made the mistake of putting myself in the situation with the person so I just removed myself as quickly as I could, and then it just continued to be complete emotional abuse after that for the last several, several months."