Actress Alyson Hannigan obtains restraining order

LOS ANGELES (AP) — Alyson Hannigan has obtained a temporary restraining order against a man who she claims has repeatedly threatened her and her family.

The "How I Met Your Mother" star obtained the order Wednesday. It requires John Hobbs to stay 100 yards away and stop posting about her online.

Hannigan's court filings state that the 43-year-old resident of Nashua, N.H., was recently released from a mental hospital.

The filing says Hobbs has threatened in online posts to kill the actress and harm her family. He admitted to police in New Hampshire that he wanted to travel to California to meet the actress.

The order covers Hannigan, her husband and their two children, ages 1 and 3.

A phone number registered to Hobbs has been disconnected.

©2014 by The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.