An Arizona politician has come up with a novel way to fund the wall: Charge people to watch porn.

Republican state Rep. Gail Griffin recently introduced a house bill that would require companies that make or sell electronics in Arizona to install porn-blocking software — and then charge folks $20 to view the smut, AZ Central reported.

The cash would go to the Arizona Commerce Authority in the so-called “John McCain Human Trafficking and Child Exploitation Fund.”

That fund would go to “build a border wall between Mexico and this state or fund border security,” the bill says, as well as give grants for mental health services, temporary housing, school districts and law enforcement.

But adult entertainment industry advocates are blasting the proposal as “pretty clearly unconstitutional.”

Similar bills have been proposed in other states, including Virginia and Rhode Island — but “the border wall twist is new,” Mike Stabile, spokesman for the non-for-profit Free Speech Coalition, told the Arizona Mirror.

According to the paper, the bill appears to be linked to Chris Sevier, a man who famously sued Utah in 2017 for not recognizing his marriage to his laptop. In 2013, he tried to sue Apple, claiming his MacBook was responsible for his porn addiction.