British singer, Tulisa, has lost a High Court bid to launch an action against the Irish Sun over what was described as a "shabby sting operation", naming her in connection with drugs.

The 24-year old former X Factor judge wanted permission to bring an action for defamation against the newspaper claiming she was set up in a sting operation in which it was allegedly suggested she audition for a €3.5 million Hollywood lead film role which was also being considered by British actress Keira Knightley.

She has alleged she was taken in and believed she would get the part if she presented herself as street wise and as someone who knew about drugs.

The singer claimed in documents read to the court that she was told she was being considered for the main role in a movie which would also star Leonardo DiCaprio.

"I fell hook, line and sinker for what I now know was a sting operation," she said in an affidavit.

Her lawyers asked the High Court to extend time for Tulisa to bring the case.

The High Court President, Mr Justice Nicholas Kearns said Tulisa Contostavlos, had been "cruelly deceived in a shabby sting operation" and there was no doubt it had caused her grave upset.  

But he said he was astounded that a more rapid reaction to initiate legal proceedings did not take place. He said he was satisfied that there should be no extension of time for the case.

It is understood the singer, who was not present in court, is now considering appealing the High Court decision.

The court heard Tulisa had been arrested within days of an article appearing in the Irish Sun in June 2013 which had a headline "She Scores" and referred to " The dark side of Tulisa".

She was charged with intent to supply a class A drug, but in June 2014 all charges against her were struck out.

In an affidavit to the court she said that in early 2013, when she was in Los Angeles she was contacted by people who claimed to be from 21st Century Fox, who said they were interested in auditioning her for a film.

She said she agreed to meet them in Las Vegas and she and a friend were flown first class there and taken to a large hotel called The Venetian. She said she met a man who called himself Samir Khan and who said he was a film producer.

She said she now knows that person to be Mazher Mahmood, a journalist with the newspaper and who wrote the article published on 2 June, 2013.

Mr Mahmood, she said over dinner asked her would she be interested in playing the lead role in a movie where the main character was to be a girl from a rough ghetto. During the dinner she said one of the group left the table and came back saying "Cameron Diaz is on the phone".

"Mr Mahmood said "I'll call her back and he said to me "She really wants the role". He also stated they were looking at Leonardo DiCaprio to play the role of an FBI agent," Tulisa said.

Later in London, Tulisa said she was told she was probably not going to get the role "since it looked like Keira Knightley would be given it instead"

She claimed she was advised by another person in the group to represent herself as a more suitable person for an urban British role and as a result she sought to present herself as " as a ghetto girl".

Later she claimed she was asked could she get cocaine and "foolishly , because I believed it was necessary to secure the part" she said she would be able to get some.

She said she was trying to convince them that she was " a rough girl with inside knowledge who knew how to buy drugs in London". Tulisa, who stated " I have never taken cocaine" said in the affidavit and she had asked a friend to pretend to be a drug dealer.

Tulisa claims that as a result of the newspaper sting her career was destroyed.

She said after she was charged and until the case against her was struck out last year, she was focused on the criminal prosecution.

She said she may have maintained a high profile, but it was required " in order to try and salvage the destruction that was inflicted on my career."