Tommy Robinson has lost a court case in which he claimed he was a victim of police harassment when he was asked to leave a pub, with the judge telling him he is "not as well known as he or his supporters might think".

The far-right figurehead - whose request to address the court was refused - had sued the Cambridgeshire Constabulary for harassment and was appearing at Peterborough County Court under his real name, Stephen Yaxley-Lennon.

He had claimed he was “humiliated” by officers from the force, who ordered him to leave a Cambridge pub he had visited with his children after a football match between Cambridge United and Luton Town, and followed him part of the way to a train station.

The EDL founder insisted he was targeted by police because of his beliefs.

But Judge Walden-Smith concluded that officers had acted lawfully and that their decision to eject him had been "risk-based", before ordering Robinson to pay £20,000 in costs.

Tommy Robinson supporters protest outside the Old Bailey Show all 16 1 /16 Tommy Robinson supporters protest outside the Old Bailey Tommy Robinson supporters protest outside the Old Bailey A Tommy Robinson supporter in London after former English Defence League (EDL) leader Tommy Robinson left the Old Bailey where his contempt of court case was adjourned PA Tommy Robinson supporters protest outside the Old Bailey A Tommy Robinson supporter outside the Old Bailey in London where the former English Defence League (EDL) leader is accused of contempt of court PA Tommy Robinson supporters protest outside the Old Bailey Tommy Robinson supporters outside the Old Bailey in London before former English Defence League (EDL) leader Tommy Robinson arrives accused of contempt of court PA Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right figurehead Tommy Robinson demonstrate outside the Old Bailey Getty Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right figurehead Tommy Robinson demonstrate outside the Old Bailey Getty Tommy Robinson supporters protest outside the Old Bailey Supporters of former English Defence League (EDL) leader Tommy Robinson protest at the Old Bailey Courthouse EPA Tommy Robinson supporters protest outside the Old Bailey Supporters of former English Defence League leader Stephen Yaxley-Lennon, or 'Tommy Robinson', who was jailed for contempt of court in May and later released, wait for him to arrive at the Old Bailey to attend a court hearing Reuters Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right figurehead Tommy Robinson demonstrate outside the Old Bailey Getty Tommy Robinson supporters protest outside the Old Bailey Tommy Robinson arrives for his hearing at the Old Bailey Reuters Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right figurehead Tommy Robinson demonstrate outside the Old Bailey Getty Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right spokeseman Stephen Christopher Yaxley-Lennon, AKA Tommy Robinson, the former leader of the right-wing EDL (English Defence League) wave flags as they demonstrate outsise The Old Bailey AFP/Getty Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right figurehead Tommy Robinson demonstrate outside the Old Bailey EPA Tommy Robinson supporters protest outside the Old Bailey epa07050344 Supporters of former English Defence League (EDL) leader Tommy Robinson protest at the Old Bailey Courthouse in London, Britain, 27 September 2018. The far right figurehead whose real name is Stephen Yaxley-Lennon faces a rehearing after winning an appeal against a contempt of court finding last month. EPA/NEIL HALL NEIL HALL EPA Tommy Robinson supporters protest outside the Old Bailey Robinson gestures to supporters from inside the Old Bailey AFP/Getty Tommy Robinson supporters protest outside the Old Bailey Supporters of far-right spokeseman Stephen Christopher Yaxley-Lennon, AKA Tommy Robinson, the former leader of the right-wing EDL (English Defence League) demonstrate outside The Old Bailey, London's Central Criminal Court, in central London on September 27, 2018. (Photo by Daniel LEAL-OLIVAS / AFP)DANIEL LEAL-OLIVAS/AFP/Getty Images DANIEL LEAL-OLIVAS AFP/Getty Tommy Robinson supporters protest outside the Old Bailey epa07050343 Supporters of former English Defence League (EDL) leader Tommy Robinson protest at the Old Bailey Courthouse in London, Britain, 27 September 2018. The far right figurehead whose real name is Stephen Yaxley-Lennon faces a rehearing after winning an appeal against a contempt of court finding last month. EPA/NEIL HALL NEIL HALL EPA

“Mr Lennon’s complaint was that he had done nothing wrong and that he didn’t need to be moved on, that he was being singled out and moved on because of who he is.

“That is not in my judgement is the case. Mr Lennon is not as well known as he or his supporters might think."

After the judge read out her decision on Friday, there was a shout of "the law's an ass" from the public gallery and Robinson said the judgment reflected the "entire corrupt system".

She said that while the officer in charge of policing the Luton Town game in question knew of Robinson from policing EDL marches, "those are separate matters to the football match".

It came after one of the officers involved in the incident told the court he did not know who the 36-year-old was and thought the name referred to an "80s football hooligan".

Judge Walden-Smith continued: “In my judgement there is no evidence that Mr Lennon was being treated differently because of his beliefs on fundamental Islam."

Explaining her judgement that police were justified in deeming Robinson a risk, she said an officer had recalled the anti-Islam activist showed a "mix of emotions of bemused, upset and angry" upon being asked to leave the pub while the match was still being shown.

“In the video footage Mr Lennon was showing himself to be angry," she said.

She said that "as any good parent would, Mr Lennon tried to shield his children" from what was happening but said officers who followed him towards the station had followed "proper procedure" to ensure he did not loop back and return to the pub.

Judge Walden-Smith ruled that all of his claims, including several under the Human Rights Act, had failed.

Robinson said he was with his three children, aged between five and nine at the time, on a family day out.

Alison Gurden, representing him, said the police officer who asked him to leave "didn't take into account factors that he should have done".

She said Robinson had been going in and out of the pub to see his children outside.

"It wasn't necessary (to move him on) as there was... nothing to indicate Mr Lennon was likely to become involved in disorder," she said.

"He's there with his children and he's certainly not dressed for a fight, he's in his flip-flops."