Social media has played an important role in Hong Kong\u2019s anti-government protests over the past few days with protesters planning their moves via apps and mainland China users apparently blocked from learning about the unrest on multiple platforms.Hundreds of thousands have taken to the streets since Sunday, protesting a proposed government law to allow extraditions to mainland China. Opponents of the bill are worried about the growing influence of Beijing on Hong Kong, and the potential erosion of the partly autonomous city\u2019s rule of law.A number of messaging services including Telegram and Facebook-owned WhatsApp were being used by protesters to organize rallies.The large-scale use of Telegram was revealed when one administrator of a 30,000 strong group on the platform was arrested, according to the South China Morning Post, citing his lawyers. The individual, Ivan Ip, was accused of conspiracy to commit a public nuisance. CNBC has reached out to Ip\u2019s lawyers but has yet to receive a response.Telegram and WhatsApp are encrypted and in theory should not allow third-parties to snoop on conversations.Several other major social media platforms were used to broadcast what was going on the ground. There was an hour-long live stream on Twitter-owned service Periscope. Users also posted to their Instagram Stories. Even Twitch, a platform that hosts video gaming-related live streams, had content about the Hong Kong protests.In Hong Kong, services like Google, Twitter, Facebook and Instagram are all freely available but are blocked in mainland China by the country\u2019s so-called Great Firewall.That means people in mainland China are subjected to government controls on the information they can access.On microblogging site Weibo, the term \u201clet\u2019s go Hong Kong\u201d was blocked with the platform citing \u201crelevant laws, regulations and policies\u201d as the reason for not showing search results. The same search query on Tencent\u2019s popular messaging app WeChat did not yield any results related to the protests.Pak Yiu, a video journalist in China for news service AFP, posted a screenshot of him sending an image of the Hong Kong protests to a friend. His friend, however, said they could not see the image, potentially demonstrating how WeChat is blocking content related to the protests.On Wednesday, messaging service Telegram said it had suffered what\u2019s known as a distributed denial of service (DDoS) attack. This is when a number of computers try to overload servers of a company with bogus requests. The result is that the service could stop working or it may slow down considerably.Pavel Durov, CEO of Telegram, said that the IP addresses behind the attack were coming mainly from China and it coincided with the Hong Kong protests.Arjun Kharpal is a News Assistant for CNBC in London. He took on the role after interning at the company for three months. Arjun has previously written for the Times, the Telegraph, the Guardian and the Mirror in London. He holds a BA in English Literature from the University of York and an MA in Newspaper Journalism from City University, London.