After the attempted wedding crash, Britney ex Jason Alexander has to stay away from his ex-wife. A court imposed a contact ban for the next three years.

After Jason Alexander’s arrest in front of Britney Spears’ (40) house, the singer’s ex-husband was banned from contact in court. He now has to keep a distance of at least 90 meters from the former pop superstar for three years, as reported by Fox News.

Alexander was briefly married to Spears in 2004 and was arrested Thursday outside the singer’s California home after trespassing on the property. The preparations for the wedding of Spears and her fiancé Sam Ashgari (28) were underway there. The two said yes later that evening in front of dozens of celebrity guests.

According to police, Alexander was initially taken into custody on an open warrant on another matter. Now he also has to answer for trespassing, stalking and other offenses. Authorities set bail at $100,000, according to TMZ.com.

The celebrity portal posted a video on Thursday that Alexander is said to have published as a live stream on Instagram. It shows him walking through the property’s house and garden, telling staff that Britney invited him. He was here to “storm” the wedding. Spears married her childhood friend Alexander 18 years ago in Las Vegas, but the marriage was annulled after 55 hours.