Ventura County Sheriff

Former "American Idol" contestant Randy Madden is back on the streets after being charged for allegedly having sex with a minor ... but his release on bond comes with a lot of restrictions ... including on contact with people under the age of 18.

According to the court docket, Madden is to have no contact with the alleged victim in his case or anyone who is considered a minor. FOX

We broke the story ... Randy is facing six felony charges in Ventura County, California, including oral copulation of a person under 18 and unlawful sexual intercourse.

Madden's bond conditions say he must not knowingly engage in internet communications concerning the publication or distribution of sexual content depicting a person under the age of 18.

He's also not allowed

See Full Page