GALVESTON, Texas — A former Galveston County judge has been convicted of two counts of online impersonation and was sentenced to six years in prison on Wednesday.

Christopher Dupuy, 47, was found guilty of posting photos of his ex-girlfriends to a website falsely advertising escort services, according to the Galveston County District Attorney's Office.

Dupuy posted the photos as advertisements on Backpage, a classified advertising website, which offered escort and sex services, according to court records.

Backpage was seized and shut down by federal investigators last April as part of a wide-ranging investigation into prostitution and human trafficking.

Court documents revealed, Dupuy also used a nude photo that one of the women shared with him during their relationship.

Evidence showed that the ads were placed using fake information and were paid with an untraceable pre-paid credit card.

During the investigation, it was also discovered that Dupuy used software to mask his IP address that prevented it from being traced, the DA's Office said in a press release on Thursday.

Law enforcement was able to track his IP address, because on one occasion Dupuy forgot to use the virtual private network when he accessed his email account.

That IP address returned to his apartment in League City where police executed a search warrant and found several devices. 

During the search, officers also found a bag containing a firearm with a laser sight and silencer, ammunition, a knife, beanie cap, gloves, a taser, multiple hand restraints, a kit to start fires and multiple disposable pre-paid cell phones, known by law enforcement as “burner phones.”

During the trial, jurors heard from Dupuy’s former wife and a Harris County woman who told the judge that he had stalked them. 

His former wife also testified that she found listening devices in her home and that there was a long history of emotional abuse. She also spoke about the child custody battle between the two, which resulted in Dupuy losing custody of his children.

Dupuy had prior convictions for perjury, abuse of official capacity, and criminal contempt, all of which were committed while he was the judge of County Court at Law Number 3. It was also shown that he judicially confessed to committing official oppression against attorney Lori Laird, the DA's Office said.