Meek Mill has lost some momentum in his bid for freedom, as the judge has denied his request for bail. According to docs, obtained by TMZ, Judge Genece Brinkley says Meek is a "flight risk" and "a danger to the community.

" In denying him bail, she also questioned the validity of his clean drug tests ... suggesting he might have used something called "Fast Flush" to cleanse his system.  

Meek's lawyer went to court and asked for bail pending an appeal on his 2 to 4 year prison sentence for a probation violation. The violation is tied to Meek's 2008 conviction on drugs and weapons charges.

Meek's lawyer, Joe Tacopina, says Brinkley's decision "continues her long pattern of unfair treatment" of Meek ... and vows they will appeal.

TMZ