A Muslim suspected of involvement in "terrorism-related activity", who complained that Home Office movement constraints prevented him from visiting McDonald's and treating one of his children to a Happy Meal, has failed to persuade a High Court judge to relax restrictions.

Mrs Justice Elisabeth Laing has decided that ministers were right to conclude that the man had "engaged in terrorism-related activity".

She said it was necessary to deny him unfettered internet access and said monitoring computer use in a McDonald's would be difficult.

The man had been made subject to "terrorism prevention and investigation measures" under the terms of 2011 legislation a year ago.

Mrs Justice Laing reviewed the restrictions at a High Court hearing in London - where she heard evidence from a member of MI5 - in July and announced her conclusions in a written ruling.

The judge oversaw part of the hearing in secret.

She said the man could not be identified and referred to him only as "LF" in her ruling.

The man said he and his wife had two young children but restrictions forced him to live many miles from them.

He said his family could visit him but he was not allowed to go in to shops or cafes with internet access, including McDonald's.

The man said that was an "issue" because one of his children "loves Happy Meals".

He said restrictions meant that he could not give the child a favourite treat.

But Mrs Justice Laing said ministers had been "entitled and right" to decide that the man had "engaged in terrorism-related activity".

She said the internet was a "gateway to many different forms of communication" and said denying the man "unfettered access" was "plainly necessary and proportionate".

The judge said it would "obviously be difficult to monitor or control" the man's access to the internet in "such a place" as McDonald's.

Mrs Justice Laing said the man had been born abroad but moved to the UK as a child.

She said he had brothers and sisters living in the UK and had links to east London.