Indonesia has threatened to bar the world?s biggest social-media providers from operating in the country unless they filter pornography.