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 .

U.S. District Judge Timothy L. Brooks issued the order ahead of , which is set to begin Tuesday in Fayetteville, Arkansas, the 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 “,” was 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.

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 “” 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.

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

Duggar’s father, Jim Bob Duggar, has 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)

The primary election in that race is Dec. 14.