A judge has granted Chloe Grace Moretz a restraining order after the actress alleged a man has been following and harassing her and some of her family members.

E! News reports the 20-year-old filed legal documents alleging Terry Daniel Quick has stalker her several occasions; once from the airport to her home where he tried to gain access, another time trailing Chloe and boyfriend Brooklyn Beckham.

Moretz claims Quick also regularly harasses her online, and has followed and confronted her mother and brother.

“Quick’s online posts, harassment and stalking has become seriously alarming, annoying and harassing,” the Kick-Ass star said in the court documents.

Quick has been ordered to stay 91 metres away from Chloe and her family.