'How I Met Your Mother' star Alyson Hannigan has been granted a restraining order against a man, who allegedly threatened her online.
The 38-year-old actress requested a protection order against John Hobbs, who she claims has been harassing her via a number of social networking sites, reported Daily Mail.
In the request, filed by her lawyers in Los Angeles, Hannigan claims that Hobbs is "mentally unstable and was recently discharged from a mental hospital."
The restraining order also protects her actor husband Alexis Denisof and their daughters, Satyana and Keeva Jane.
A hearing has been set for March 6 to decide whether the order will be made permanent.


