A Pennsylvania special-education teacher and coach posed as a woman on Instagram to manipulate boys into sending him explicit photos and videos, prosecutors said.

Andrew Eberhart, a 23-year-old teacher at Palmyra Area Middle School, was charged Tuesday with nine felony counts for soliciting and possessing child porn involving multiple boys between the ages of 12 and 16 from the Cornwall-Lebanon School District, Lebanon County District Attorney Hess Graf announced Monday.

“Solicitors and possessors of child pornography prey upon the innocence of our children,” Graf said in a statement. “These individuals victimize very young children for their own devices. I take the protection of our children and our community seriously, and we will prosecute this case vigorously.”

Eberhart also volunteered as a basketball coach at Cedar Crest High School in the Cornwall-Lebanon School District, WGAL reports.

An investigation into the Instagram account with a “Jordynmatter” username started last fall when Manheim Township cops got a tip that the operator of the social media profile was seeking out and receiving child porn on the platform, prosecutors told the station.

The tipster told police that a 13-year-old child had sent a sexually explicit photo to the account. A search warrant was executed at Eberhart’s home in late January, prosecutors said.

“Ultimately law enforcement determined Andrew Eberhart was the person registered to [the] ‘Jordynmatter’ Instagram account,” prosecutors said in a statement.

Eberhart later admitted during an interview with detectives that he posed as a woman to seek out the photos and videos from young boys. He also confessed that many of his victims were from the Cedar Crest High School and Middle School, authorities said.

The private Instagram account, which had 446 followers as of Tuesday, features a photo of two attractive blond women.

Eberhart has since lost his job with the Palmyra Area School District. He was placed on administrative leave in late January when district officials learned of an ongoing criminal investigation involving him, WGAL reports.

Eberhart — who passed a background check prior to his hiring, according to district officials — also had his volunteer status at Cedar Crest High School revoked, the Lebanon Daily News reports.