Man ordered to stay away from Alyson Hannigan

FILE - This Dec. 7, 2012 file photo shows actress Alyson Hannigan from the CBS comedy, "How I Met Your Mother," at the March of Dimes Celebration of Babies in Beverly Hills, Calif. A judge has ordered a New Hampshire man to stay away from Alyson Hannigan and refrain from posting about the actress for the next three years. (Photo by John Shearer/Invision/AP, file)
— JOHN SHEARER/INVISION/AP

FILE - This Dec. 7, 2012 file photo shows actress Alyson Hannigan from the CBS comedy, "How I Met Your Mother," at the March of Dimes Celebration of Babies in Beverly Hills, Calif. A judge has ordered a New Hampshire man to stay away from Alyson Hannigan and refrain from posting about the actress for the next three years. (Photo by John Shearer/Invision/AP, file)
/ JOHN SHEARER/INVISION/AP

FILE - This Dec. 7, 2012 file photo shows actress Alyson Hannigan from the CBS comedy, "How I Met Your Mother," at the March of Dimes Celebration of Babies in Beverly Hills, Calif. A judge has ordered a New Hampshire man to stay away from Alyson Hannigan and refrain from posting about the actress for the next three years. (Photo by John Shearer/Invision/AP, file)— JOHN SHEARER/INVISION/AP

FILE - This Dec. 7, 2012 file photo shows actress Alyson Hannigan from the CBS comedy, "How I Met Your Mother," at the March of Dimes Celebration of Babies in Beverly Hills, Calif. A judge has ordered a New Hampshire man to stay away from Alyson Hannigan and refrain from posting about the actress for the next three years. (Photo by John Shearer/Invision/AP, file)
/ JOHN SHEARER/INVISION/AP

LOS ANGELES 
A judge has ordered a New Hampshire man to refrain from posting anything online about Alyson Hannigan or to try to meet the actress.