Concerned for her family and her own safety, Alyson Hannigan was granted a temporary restraining order against a former mental patient on Wednesday (February 13).

According to reports from TMZ, the “How I Met Your Mother” star has been threatened by John Hobbs via Facebook and MySpace, as well as through her own website.

In court papers, the mother-of-two alleges the perpetrator is “mentally unstable and was recently discharged from a mental hospital.”

The order covers Ms. Hannigan, her husband, and their two young children. Another hearing on the matter is scheduled for March 6.