NBC News reports that former House Speaker Dennis Hastert has been banned by a federal judge from possessing or purchasing porn, or being in the presence of a minor. The decision comes after Hastert served 15 months for covering up accusations of child molestation.

The judge’s order read, “[Hastert] shall not possess or have under his/her control any pornographic, sexually oriented, or sexually stimulating materials, including visual, auditory, telephonic, or electronic media, computer programs, or services. The defendant shall not patronize any place where such material or entertainment is available. The defendant shall not use any sex-related telephone numbers. You shall not have contact with any person under the age of 18, except in the presence of a responsible adult who is aware of the nature of his/her background and current offense, and who has been approved by the probation officer and treatment provider.”

Hastert was also ordered to give his probation officer all phone bills and credit card bills, and has to have approval prior to using a computer or camera.

At 75 years old, Hastert once held one of the most powerful political positions in Washington. He pleaded guilty in 2015 to hiding pay-offs to one of his accusers by structuring cash withdrawals. Although he was not technically charged with sexual crimes, he allegedly molested four boys between the ages of 14 and 17 when he worked as a wrestling coach at Yorkville High School several years before going into politics.

Hastert is still fighting a civil suit filed by one of his accusers, who says he never paid him a promised $3.5 million.

Hastert has said publically that what he did was wrong and he took advantage of boys who looked up to him at the time.

*Photo credit Getty Images