(CNN) Britney Spears has just won a major legal victory.

The singer and her family have been granted a five-year restraining order against her former friend, Sam Lutfi.

The decision was made Thursday, according to court documents obtained by CNN.

The restraining order is an extension of a temporary order issued last month, which mandated Lutfi not make "disparaging public statements" about Spears or her family and stay 200 yards away from the Spears.

Spears was not present in court, according to her spokesperson.

Read More