Updated

A judge has granted Taylor Swift a three-year restraining order against a man who has threatened the singer's family.

Los Angeles Superior Court Judge Carol Boas Goodson granted Swift a protective order from Timothy Sweet, who has expressed his belief that he is married to the Grammy winner.

Swift was granted a temporary restraining order against Sweet on March 3. Swift's filing states Sweet has sent messages threatening to harm Swift's family or anyone who interferes with his perceived relationship with the entertainer. The singer wrote in a sworn declaration that she fears for her safety in public and at home.

Court filings state Sweet has sent threatening messages online and went to Swift's Beverly Hills home in February.

The order also covers Swift's parents.