It depends on the country and its legal environment.
The country I originally developed this idea for was a hypothetical one which had a more cryptographically-rooted internet, where each citizen was issued multiple pseudonymous identifiers that the government could track back if needed, but which corporations were prohibited from tracking in some of the ways they currently track identity in the United States.
However, the political and technical landscape of the various real countries is much different.
In this case, while we already have mechanisms that somewhat limit the sale of pornography by age, especially in physical stores, people can get around that with the Internet if they know the right keywords.
What I’m wondering about is if a limited lifting of some restrictions in combination with the imposition with new ones would create a new market. The sheer amount of, uh, let’s call it sexual energy present in humanity is what drives the demand that creates oceans of pornography. Like, Rule 34 exists not because of some 4Chan cult but because of the demand plus available infrastructure. Trying to end it all because it ‘teaches bad morals’ is practically impossible short of the introduction of a far more totalitarian state.
So instead of abolishing it, channel some of that energy and adjust the ease of access such that rates of exposure to healthy vs unhealthy versions, especially at key times, shift.
Contextualize sex.