You know, exactly how it was 25ish years ago before the regulated Internet era. We had an internet back then, and people were slightly more constrained with what they do on it.
Over time, people tested the boundaries of what they could get away with, found they could get away with a lot, and then got away with a lot. Now we generally agree it's gone too far and the boundaries need to be set tighter. This is the cost of that.
In terms of legality it is not clear to me that countries will enforce the laws of other countries even if they are allies. Global trade is changing and I suspect that could affect international enforcement as dependencies shift, maybe. Time will tell.
And you can do the exact same thing online.