Alyson Hannigan gets 3-year restraining order against alleged harasser

March 7, 2013 at 9:51 AM ET

Toby Canham / Getty Images /
Alyson Hannigan.

For at least a few years, Alyson Hannigan can rest easier: According to the Associated Press, the "How I Met Your Mother" star has been granted a restraining order from a Los Angeles Superior Court judge.

The order, which lasts for three years, is specific to a 43-year-old New Hampshire man named John Hobbs, who had threatened more than once on Facebook and fan sites to kill Hannigan and her husband, Alexis Denisof. Hobbs, 43, will now be prohibited from coming closer than 100 yards of Hannigan and her family, talking about her online or otherwise trying to contact her, E! Online added.

Last month, Hannigan petitioned for a temporary restraining order, noting that Hobbs was "mentally unstable," had a pistol permit and was on release from a mental hospital. 

"(I)n 2013 I still can marry you tomorrow. I can kill you tomorrow too. Cause I simply like and love you as you live life. Aly...It doesn't end. Even after death," a Facebook post from January 3 attributed to Hobbs read. It was included in the court filing.

Judge Carol Boas Goodson said that Hobbs agreed to the terms of the restraining order. Hannigan did not attend the hearing, and has not commented on the matter.

Related content: