An imam from Birmingham, accused of fundraising for Islamist militant group Al-Shabab, has lost a High Court human rights fight.
The Somali man, who has not been identified, was made the subject of a Terrorism Prevention and Investigation Measure (TPim) by the Home Office after MI5 assessed him as posing a risk.
The imam complained the measure was "degrading and inhuman".
But the judge ruled it did not breach his human rights.
The TPim required the man to live at home and stay in at night, barred him from having travel documents and imposed limits on who he could associate with, his use of bank accounts and computer devices, and required him to wear a monitoring tag on his ankle.
Mr Justice Ouseley, who heard evidence in October, said the man was a married father of seven who had arrived in the UK more than a decade ago.
He had been granted asylum and leave to remain and had worked as an imam.
Six years ago he was charged with fundraising for Al-Shabab, but was acquitted.
He was made the subject of the measure two years ago, after an assessment by MI5.
Agents said he had returned to Somalia, met senior Islamic extremists and couriered funds and equipment for terrorism-related purposes.
They said he had recruited and radicalised people and helped them travel to Somalia for terrorism-related activities.
They also said he had created extremist websites and raised money for Al-Shabab.
The man, who said he had mental health problems, complained his rights under Article Three of the European Convention On Human Rights - which prohibits inhuman and degrading treatment - were being breached.
But Mr Justice Ouseley said the effects of the measure did not breach Article Three.