A man made vile online claims about people he held a grudge by claiming they were paedophiles.
Now Mark Fisher has been ordered to be detained in hospital.
Fantasist Fisher, of Fenton Road, Lockwood, posted the damaging comments online.
One of his victims, a schoolteacher, has been unable to return to work because of the false allegations made by the 44-year-old.
District Judge Michael Fanning told him: “You made harmful and utterly baseless allegations against a number of individuals.
“The allegations you made are a fantasy and in one instance you harmed the career of one of your victims.”
Fisher was convicted after a trial of nine charges under the Malicious Communications Act of updating a website with grossly offensive articles.
He was found guilty of a further charge of harassment.
The court heard that Fisher initially targeted one male victim with his lies.
Vanessa Jones, prosecuting, told Kirklees Magistrates’ Court: “Mr Fisher published on a couple of blog sites and Facebook some unpleasant information about this gentleman in relation to paedophile involvement.”
Fisher put a picture of the victim on the social networking site with a link to the website linked to a known sex offender.
But Fisher claimed that on his page were the details of ‘suspected perverts’ living in Huddersfield.
The victim told Fisher that the allegations were false and asked him to take the information off the site, which Fisher refused to do.
Others who knew Fisher responded and told him they were not happy about him making these claims.
Mrs Jones said: “Four other people who knew Mr Fisher expressed their displeasure.
“They were added to the list that Mr Fisher felt were part of paedophile involvement.
“One of the complainants is a teacher and because of the information still on Facebook she can’t work.”
The court heard that Fisher, who had no previous convictions, suffers from mental illness.
Judge Fanning told him: “The allegations you made against them are a fantasy, linking them to paedophilia.”
He said that some of the victims were wrongly linked to terrorism while Fisher accused another of causing the death of her husband, when he was killed by a tragic accident.
In Making the hospital order, the judge said: “I am satisfied that you will continue to offend against these individuals or cast your net wider to involve those against whom you hold a grudge.”
Fisher will be kept in hospital for an initial six-month term. Upon his release he must comply with a restraining order, banning him from contacting six named victims.
Fisher is also banned from posting any images or material about them online.
In addition he is prohibited from maintaining the material already published by him, meaning that any offensive posts will need to be taken down.