Indonesia prohibits pornography.
If someone creates porn in Indonesia, that's illegal.
What about if an Indonesian citizen creates porn somewhere else?
What about if a non-Indonesian is a porn star somewhere else and then becomes a tourist in Indonesia?
Another recent example is this
China criminalized criticizing the CCP government for all people in the world. Can they really do that? Are there other examples of such codes?