Britney Spears’ former manager has been banned from contacting the singer or her family.
The five-year restraining order was granted following testimony from the ex-manager, 44-year-old Sam Lutfi, and from Spears’ father, James Spears.
James Spears, who has controlled his daughter’s money and affairs via a court-ordered conservatorship for 11 years, testified that Lutfi had been a "predator" on his family for more than a decade.
Lufti was close to Britney Spears in 2007 and 2008 and served briefly as her manager.
Mr Spears told the court: "I worried that he was trying to take down the conservatorship. I was very angry. I was worried that we were right back in 2008."
His lawyers suggested Lutfi had attempted to incite fans who have used the social-media hashtag #Free Britney to criticise the control James Spears and the court have had over the pop star for the past 11 years.
Lutfi’s Twitter account, the subject of much of the testimony, consists almost entirely of posts critical of James Spears.
But Lufti’s lawyer Marc Gans argued that none of the statements were made directly to individuals or could be considered harassment.
He also said Lutfi has made no direct contact with Britney Spears herself and suggested that her father and his lawyers were not speaking for her.
James Spears admitted under questioning that he did not have the most peaceful relationship with his daughter.
He said: "Me and my daughter’s relationship has always been strained."
Lutfi admitted he had contacted Britney Spears’ mother, Lynne Spears, and the singer’s brother-in-law James Watson via texts and phone calls and sent Lynne Spears money that was subsequently returned.
He told the court he sent the money "just like numerous other fans did" because Lynne Spears had "liked" Instagram posts that suggested she was in need of money and that she should be in charge of her daughter’s affairs instead of her ex-husband James Spears.
Mr Gans said neither Lynne Spears nor Mr Watson had asked Lutfi to stop communicating with them or told him he was harassing them.
Mr Gans also argued that tweets from his client, including one that simply said "raise hell" were far too vague to be considered harassment of the Spears family.
The judge said Lutfi’s testimony was evasive and extended the temporary restraining order she first issued in May.