No protocol can solve this because if a government makes saying something illegal, one would have to never attach that statement with one's name if one is in that government's jurisdiction.
But attaching one's name to a statement, in public, is part of one's fundamental human right to freedom of speech, so the issue can't truly be solved through any technical solution.