Hannigan obtains restraining order

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 on 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, New Hampshire, 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 one and three.