A federal judge says no phones, laptops or recording devices will be allowed at next week's child pornography trial for former reality TV star Josh Duggar.

U.S. District Judge Timothy L. Brooks issued the order ahead of the trial, which is set to begin Tuesday in Fayetteville, Arkansas, the Northwest Arkansas Democrat-Gazette reported.

A federal judge ruled that no phones, laptops or other recording devices would be allowed in the courtroom during Josh Duggar's upcoming child pornography trial.

A federal judge ruled that no phones, laptops or other recording devices would be allowed in the courtroom during Josh Duggar's upcoming child pornography trial. (Photo by Kris Connor/Getty Images)

Duggar, who appeared in TLC’s "19 Kids and Counting," was charged in April with two counts of downloading and possessing child pornography.

Duggar, 33, faces up to 20 years in prison and fines of up to $250,000 on each count if convicted.

JUDGE ORDERS EVIDENTIARY HEARING AHEAD OF JOSH DUGGAR'S CHILD PORNOGRAPHY TRIAL

Duggar, who rose to fame on "19 Kids and Counting," faces up to 20 years in prison and potential fines if convicted.

Duggar, who rose to fame on "19 Kids and Counting," faces up to 20 years in prison and potential fines if convicted. (Washington County Police Department)

TLC pulled "19 Kids and Counting" in 2015 over revelations that Duggar had molested four of his sisters and a babysitter. Duggar’s parents said he confessed to the fondling and apologized.

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

Duggar has also apologized for his pornography addiction and for cheating on his wife.

Duggar's father, Jim Bob Duggar, has announced plans to run for a recently vacated state Senate seat. Jim Bob Duggar was also featured prominently on the TLC show and previously served in the Arkansas House.

Duggar and his wife Anna recently welcomed their seventh child together while he deals with his legal woes.

Duggar and his wife Anna recently welcomed their seventh child together while he deals with his legal woes. (Photo by Kris Connor/Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

The primary election in that race is Dec. 14.