A court has issued a temporary restraining order against Rob Kardashian in response to the reality television star's posting of explicit images of his ex-fiancee on social media last week.
Los Angeles Superior Court Commissioner James E Blancarte issued the order in response to filings by Kardashian's ex, Blac Chyna. The order will remain in effect until an August 8 hearing.
He said his primary concern was the former couple's infant baby, who was not listed in Chyna's requests for a protective order.
Mr Blancarte sealed exhibits in the case, citing their explicit nature.
Chyna's lawyer Lisa Bloom said after the hearing that the restraining order prevents Kardashian from posting anything about her client online and ordered him to stay away from her.
Chyna sought a temporary restraining order on Monday, less than a week after Kardashian went on a tirade against her on Instagram and Twitter, including posting explicit images of her. She attended Monday's hearing, but spoke only briefly in response to Mr Blancarte's questions.
Ms Bloom has accused Kardashian of cyber bullying.
Kardashian did not appear at Monday's hearing. His lawyer Robert Shapiro apologised on his client's behalf outside the court.
"We apologise and have offered our regrets for what has taken place in the last few days," Mr Shapiro said.
He said the former couple remains focused on their daughter, who he said is currently being cared for by Kardashian.
"They're working this out among themselves as good parents," Mr Shapiro said.
He said Kardashian agreed to the issuance of a temporary restraining order.
"First and foremost I want to thank the judge for granting me this restraining order to protect me and I want to (get) back to co-parenting Dream," Chyna said outside the court.
Ms Bloom said in court that the pair has nannies to handle custody transfers while the restraining order is in place.
Kardashian and Chyna announced their engagement in April 2016 and starred in an E! reality show about their relationship.
Their daughter, Dream, was born last November. The couple split up a month later.
Kardashian is the younger brother of Kim Kardashian and appeared on several seasons of the family's reality series, Keeping Up With The Kardashians.