Kodak Black is not getting a get-out-of-jail free card until September, according to the judge in the federal case.
The judge over Kodak's case ruled Wednesday, Kodak must remain behind bars until his trial gets underway.
Kodak requested to be let out on bail -- but under strict supervision -- so he could travel to South Carolina and deal with a sexual assault case. The feds, said he's too dangerous to be let out at all before trial.
The Dept. of Justice says the court deemed the rapper to be a danger to the community. Kodak is scheduled to go on trial in Miami for lying on federal gun applications.
Prosecutors are also linking him to a March shooting, in which firearms he allegedly purchased through those applications were used.
Kodak was arrested at Rolling Loud earlier this month where officers had warrants for his arrest after he'd been indicted on the false statement charges.