Ryan Cleary, the 19-year-old accused of hacking the Serious Organised Crime Agency’s website was bailed yesterday – and was ordered to stay offline.

Ryan, who suffers from Asperger’s, was arrested during a probe into notorious hacker group LulzSec.

His mother, Rita, said she was his “best friend” and agreed to any conditions.

Judge Nicholas Loraine-Smith agreed to Cleary's bail, as long as the hacker wears an electronic tag, obeys a curfew and does not log on to the internet.

The teenager, who is said to be agoraphobic and stays in his bedroom most of the time, is not allowed not leave his home in Wickford, Essex, without his parents by his side.

The judge told Southwark crown court, Central London, Cleary was “of good character”.

LulzSec, which now says it has disbanded, has claimed it tried to hack Soca, the US Senate and the CIA’s websites.

Cleary did not enter a plea for his five computer misuse charges.

He will do so at the same court on August 30.