A man accused of launching cyber attacks on targets including the FBI, the US army, Nasa and the Department of Defence has won his battle against being extradited to the US.

The High Court ruled that Lauri Love should be tried in Britain after Lord Chief Justice Lord Burnett and Mr Justice Ouseley heard he suffered severe mental illness and could kill himself.

“If proven, these are serious offences indeed,” their judgment said. “The experience of imprisonment in England would be significantly different for Mr Love from what he would face in the United States.

“The support of his family, in particular, would mean that he would be at far lower a risk of suicide in consequence.”

Speaking outside the court, an elated Mr Love expressed his thanks to the judges, adding: “I’m thankful for all the support we’ve had, without which I’m not sure I would have made it this far.”

Flanked by his parents, girlfriend and supporters chanting his name, he added: “The reason I’ve gone through this ordeal is not just to save myself from being kidnapped and locked up for 99 years in a country I’ve never understood, but to set a precedent whereby this will not happen to other people in the future, and that if there is suspected criminality it will be tried here in the UK and America will not try to exercise its extraterritorial jurisdiction.

Lauri Love and his girlfriend Sylvia Mann outside the Royal Courts of Justice in London on 5 February (AP)

“We’re hopeful that other people may be able to rely on this verdict to ensure they are treated more humanely by the justice system.”

The 32-year-old’s family said they feared he would kill himself if sent to an American prison, following a long history of serious mental health issues including depression and psychotic episodes.

Mr Love has been diagnosed with Asperger’s syndrome and also suffers from severe eczema related to his anxiety.

He and his parents were in court for the hearing, while supporters gathered outside holding signs reading “trial at home” and “free Love”.

The student, who is studying electrical engineering at the University of Suffolk, says he wants to work in cyber security and helped combat the WannaCry virus that disabled large parts of the NHS last year.

The case was a test for a legal measure called the forum bar, which was introduced to stop vulnerable British defendants being extradited “in the interests of justice” when their cases could be heard at home instead.

The Crown Prosecution Service (CPS) has 14 days to seek an appeal to the Supreme Court, but is expected to prosecute Mr Love itself after judges said the move would not be “oppressive”.

“If the forum bar is to operate as intended, where it prevents extradition, the other side of the coin is that prosecution in this country rather than impunity should then follow,” the judgment added.

Supporters of Lauri Love outside the Royal Courts of Justice in London (PA)

“The CPS must now bend its endeavours to his prosecution, with the assistance to be expected from the authorities in the US, recognising the gravity of the allegations in this case, and the harm done to the victims.”

Liberty, which was among the groups making representations in the case, said it was “delighted” with the result.

Emma Norton, the group’s head of legal casework, said: “Where unlawful activity is alleged to have taken place in the UK, those suspected should be tried in the UK – not packed off to foreign courts and unfamiliar legal systems.

“This is especially important in cases of vulnerable people like Lauri Love. This was always a case that could have been prosecuted here, and it’s shameful that Lauri and his family have been put through this terrible ordeal.”

Sarah Lambert, head of policy at the National Autistic Society, said the criminal justice system can often overlook the needs of autistic offenders and defendants.

“As we raised in evidence in Lauri’s case, autistic people need the right support so their needs are understood, particularly in prison, or they may develop complex and long-term mental health problems,” she added.

“We believe autistic people need fair access to justice which takes their autism into account, and we hope that the UK courts will ensure that Lauri has the correct support in place through the next phase of the proceedings.”

A spokesman for Mr Love’s solicitors, Kaim Todner, said mental health provisions in US prisons were not adequate.

“In this instance, the court was very sympathetic to our argument that there was no real reason that a trial could not take place in England, and that the effects on Lauri’s mental and physical health would render extradition highly oppressive,” he added.

“This deterioration in health was likely to have meant that he would not have been fit to stand trial and that, therefore, extradition would not have been in anyone’s interests, least of all those of the alleged victims.”

UK news in pictures Show all 50 1 /50 UK news in pictures UK news in pictures 15 September 2020 People enjoying the autumn sunshine as they punt along the River Cam in Cambridge PA UK news in pictures 14 September 2020 Early morning light bathes the skyscrapers of the City of London, at the start of a week in which the UK is expected to bask in temperatures of more than 30 degrees PA UK news in pictures 13 September 2020 England celebrate after they dismissed Australia's Alex Carey to win the second ODI match of the series at Emirates Old Trafford, Manchester PA UK news in pictures 12 September 2020 Protesters outside BBC Broadcasting House in central London, as marches and rallies form across the country calling for a 15% pay rise for NHS workers and an increase in NHS funding PA UK news in pictures 11 September 2020 An empty migrant dinghy floats off the beach at St Margaret's Bay after the occupants landed from France in Dover Getty UK news in pictures 10 September 2020 A view of small boats thought to be used in migrant crossings across the Channel at a storage facility in Dover, Kent PA UK news in pictures 9 September 2020 EU's chief negotiator Michel Barnier, left, arriving from the Eurostar with EU Ambassador to the UK, Portuguese diplomat Joao Vale de Almeida at St Pancras International railway station, London, for the latest round of the negotiations on a free trade deal between the EU and the UK PA UK news in pictures 8 September 2020 Dawn over Coquet Island, a small island off Amble on the Northumberland coast PA UK news in pictures 7 September 2020 A hovercraft arrives to Southsea, Hampshire from the Isle of Wight PA UK news in pictures 6 September 2020 Forensics officers near the scene of multiple reported stabbings in Birmingham Reuters UK news in pictures 5 September 2020 Anti-migrant protesters demonstrate in Dover against immigration and the journeys made by refugees crossing the Channel to Kent PA UK news in pictures 4 September 2020 Activists take part in a demonstration against the HS2 hi-speed rail line outside the Department of Transport AFP via Getty UK news in pictures 3 September 2020 Peter Baker, who plays Trigger in the musical version of Only Fools and Horses, sweeps the stage of the Theatre Royal Haymarket in London, after observing a 15 minute silence to show solidarity with those in the theatre industry that have lost their jobs due to the coronavirus pandemic PA UK news in pictures 2 September 2020 Kadie Lane, right, 11, and Brooke Howourth, 11, hug on their walk to Marden Bridge Middle School in Whitley Bay, Tyne and Wear, for their first day of term, as schools in England reopen to pupils following the coronavirus lockdown PA UK news in pictures 1 September 2020 Extinction Rebellion protesters sitting outside The Houses of Parliament in Westminster, London PA UK news in pictures 31 August Surfers at Long Sands Beach, Tynemouth PA UK news in pictures 30 August Black Lives Matter protesters march through Notting Hill in London in the first Million People March EPA UK news in pictures 29 August A protester reacts as she demonstrates against the lockdown and use of face masks, amid the coronavirus disease outbreak, outside Downing Street in London Reuters UK news in pictures 28 August Caribbean soca dancers display their costumes as they promote the first ever digital Notting Hill Carnival, following the cancellation of the normal Carnival festivities due to the continued spread of the coronavirus disease, in London Reuters UK news in pictures 27 August Father and son team Chris and Sam Milford from historic building conservation specialists WallWalkers begin restoration work on the spire of Norwich Cathedral, which stands at over 312ft high. The first known spire was completed in 1297 PA UK news in pictures 26 August Giant waves at Seaham in County Durham, as the bad weather continues PA UK news in pictures 25 August An assistant at the Wallace Monument cleans the case which houses the William Wallace sword in the Hall of Arms room at the monument near Stirling as they prepare to re-open PA UK news in pictures 24 August Restored World War Two landing craft LCT 7074 is transported from from the Naval Base in Portsmouth to its final resting place at the D-Day Story at Southsea PA UK news in pictures 23 August Jenny Nguyen and Tony Cao, from Vietnam, pose for wedding photos on Tower Bridge in London, as it remains closed to vehicles after it was stuck open on Saturday due to a "mechanical fault". The landmark's Twitter account confirmed only pedestrians and cyclists could use it on Sunday morning PA UK news in pictures 22 August England's Zak Crawley hit 267, joining the exclusive Double Hundred club, on day two of the Third Test match against Pakistan at the Ageas Bowl, Southampton PA UK news in pictures 21 August Harri Teale gathers lavender during the annual harvest on the Wolds Way Lavender farm near Malton in North Yorkshire PA UK news in pictures 20 August Parents and a student react after checking GCSE results at Ark Academy in London Reuters UK news in pictures 19 August Tate Modern workers hold a strike outside the gallery in London, to protest the institution's announcement that it would cut more than 300 jobs from its commercial arm, Tate Enterprises PA UK news in pictures 18 August Two rescued brown bear cubs, Mish (left) and Lucy, cool off in a pool after arriving at their new home with the wildlife conservation charity Wildwood Trust in Herne Bay, Kent. The orphaned pair, who have been living in a temporary home in Belgium since they were found abandoned and alone in a snowdrift in the Albanian mountains, will be acclimatised to their new life in the country before moving to a permanent home PA UK news in pictures 17 August A level students celebrate outside the Department for Education in London after it was confirmed that candidates in England will be given grades estimated by their teachers, rather than by an algorithm. The government U-turn comes just days after Education Secretary Gavin Williamson vowed there would be "no U-turn, no change. PA UK news in pictures 16 August Wasp players take a knee as Northampton Saints stand prior to kick-off in their Premiership match at Franklin's Gardens PA UK news in pictures 15 August Piper Colour Sergeant Lil Bahadur Gurung attends the VJ Day National Remembrance event, held at the National Memorial Arboretum in Staffordshire, Britain Reuters UK news in pictures 14 August People including students hold placards on Whitehall outside Downing Street as they protest against the downgrading of A-level results. The government faced criticism after education officials downgraded more than a third of pupils' final grades in a system devised after the coronavirus pandemic led to cancelled exams yes AFP via Getty UK news in pictures 13 August Benita Stipp (centre) and Mimi Ferguson (left) react as students at Norwich School receive their A-Level results PA UK news in pictures 12 August 2020 A train derailment near Stonehaven has left three people dead. Driver Brett McCullough, conductor Donald Dinnie, and a passenger were killed when the 6.38am Aberdeen to Glasgow Queen Street service crashed amid heavy rain and flooding BBC UK news in pictures 11 August 2020 A woman hydrates in the sun after open water swimming at the West Reservoir Centre in north London Tolga Akmen/AFP via Getty UK news in pictures 10 August 2020 Prime Minister Boris Johnson takes part in an archery session as he visits Premier Education Summer Camp at Sacred Heart of Mary Girls' in Upminster Reuters UK news in pictures 9 August 2020 People cycle through Cambridge as the heatwave continues in Britain EPA UK news in pictures 8 August 2020 Healthcare workers take part in a protest in London over pay conditions in the NHS Getty UK news in pictures 7 August 2020 Emergency services make their way along the seafront on Bournemouth beach in Dorset on one of the hottest days of the year PA UK news in pictures 6 August 2020 Alison Murphy poses for a picture by husband Peter as she walks through a field of sunflowers in Altrincham, Cheshire PA UK news in pictures 5 August 2020 Pakistan's Abid Ali being bowled by England's Jofra Archer during day one of the First Test match at the Emirates Old Trafford, Manchester PA UK news in pictures 4 August 2020 The 'Timbuktu tumblers' from Kenya perform their balancing act on the Southsea waterfront as Zippos Circus reopens in Portsmouth Rex UK news in pictures 3 August 2020 Pelicans interact with a visitor in St James's Park in London PA UK news in pictures 2 August 2020 Lewis Hamilton drives with a puncture towards the finish line to win the Formula One British Grand Prix at Silverstone POOL/AFP via Getty UK news in pictures 1 August 2020 Arsenal's Pierre-Emerick Aubameyang celebrates with the trophy and teammates after winning the FA Cup, as play resumes behind closed doors following the outbreak of the coronavirus disease Pool via Reuters UK news in pictures 31 July 2020 People enjoy the sunny weather at a Bournemouth Beach Reuters UK news in pictures 30 July 2020 An artist puts the finishing touches to a wax figure of Prime Minister Boris Johnson, in the entrance line at Madame Tussaud's in London, as the attraction prepares to reopen to the public following the easing of lockdown restrictions in England PA UK news in pictures 29 July 2020 A member of staff stands on Ai Weiwei's 'History of Bombs' during a photocall for the Chinese artist's new work on display at the Imperial War Museum in London PA UK news in pictures 28 July 2020 Stuart Broad celebrates after taking the wicket of West Indies batsman Kraigg Brathwaite. It was a milestone wicket in his career, reaching his 500th Test Wicket for England. They went on to beat the West Indies in Manchester and therefore win the series 2-1 Getty/ECB

Representing Mr Love at a hearing in November, Edward Fitzgerald QC said there were “overwhelming reasons of justice and humanity” why any trial should take place in the UK.

He argued that it would be ”unjust and oppressive“ to extradite the alleged hacker because of the risk of suicide.

But Peter Caldwell QC, representing the US, made submissions inviting judges to dismiss Mr Love’s appeal.

Mr Love is accused of stealing data from American agencies including the Federal Reserve, the US army, the defence department, Nasa and the FBI in a spate of cyber attacks in 2012 and 2013.

Mr Love was allegedly involved with #OpLastResort, which saw global hackers target the US government following the suicide of American computer scientist Aaron Swartz.

Known for his work developing RSS feeds, Creative Commons and Reddit, as well as his online activism, Mr Swartz killed himself after being charged with fraud for unauthorised journal downloads.

Mr Love’s lawyers said he could be given a 99-year prison sentence if convicted in the US because he has been indicted in three judicial districts.

Mr Love’s father said his son ”fears for his life“ before the ruling was handed down.

“He is very distressed, he is obviously afraid because he has stated on more than one occasion that he fears for his life because he doesn’t think he can cope with the trauma of being taken away from his family and his country and taken in exile to America,” Rev Alexander Love told BBC Radio 4’s Today programme.

Mr Love outside the Royal Courts of Justice (AP)

Mr Love lives with his parents near Newmarket in Suffolk, and his father said that although he should “face the music ... it should be a British band“.

His supporters argued that the systems infiltrated in #OpLastResort had publicly known vulnerabilities and that rather than doing “real harm”, the bulk of costs were incurred by bringing protections up “up to the standard of security that they should have been in the first place”.

Mr Love had appealed a ruling handed down in Westminster Magistrates’ Court in 2016, where District Judge Nina Tempia said he could be extradited.

She identified a high risk of suicide but did not bar the move, on the condition that it could be managed in American facilities.

Amber Rudd formally signed off on the extradition as Home Secretary, following opposition by 114 MPs of all parties who signed a joint letter to Barack Obama.

Citing Mr Love’s history of mental illness and autism, the letter said: “If Mr Love has committed a crime, he should be prosecuted and justice should be served.”

MPs said Mr Love would be the first UK-based computer hacker to be extradited, with a dozen previous cases heard in Britain even though their attacks affected the US.

As Home Secretary Theresa May blocked the extradition of Gary McKinnon, another hacker suffering Asperger’s syndrome and depression who was judged to be a suicide risk.

At the time, Ms May said Mr McKinnon was “seriously ill” and his extradition for accessing US government computers – looking for evidence of UFOs – would breach his human rights.

The case sparked accusations of hypocrisy from critics citing other cases where British citizens with Asperger’s had not been saved from extradition.