Countries around the world, including Russia, China and Egypt, have restricted social media network X for periods.