Turkey lifted a much-criticised block on Twitter on Thursday, 24 hours after its highest court overturned the ban as a breach of the right to free speech. Premier Recep Tayyip Erdogan on March 20 shuttered access to the social media site after it had been used to spread a torrent of anonymous leaks implicating his inner circle in corruption. Turkey's NATO allies and international human rights groups strongly criticised the ban -- as well as an ongoing block of video-sharing website YouTube -- as a step backward for Turkey's democracy. On Wednesday Turkey's Constitutional Court ruled the Twitter ban violated free speech and ordered the communications ministry and telecoms authority to reverse it "with immediate effect". The government took 24 hours to react. First the telecoms authority TIB removed from its website a court order on the Twitter block and started contacting internet service providers to lift the ban. Shortly after -- as many of Turkey's Twitter accounts came live again -- the transport and communications ministry confirmed the move in a brief statement. "In line with the decision made by the Constitutional Court ... the measure blocking access to the Twitter.com Internet site has been removed," it said. "After the necessary technical arrangements, the site will be opened to use." The ban had been widely circumvented by many of Turkey's almost 12 million Twitter users, who have instead sent tweets via text message or by adjusting their Internet settings. Many Twitter users quickly commented on the move, with Nervana Mahmoud writing from Egypt, "Joy to the world, the Sultan has agreed", using a common nickname for Erdogan. Turkish journalist Adem Yavuz Arslan urged caution, warning that users should maintain the VPNs or virtual private networks they have used to get around the ban. "Twitter has been unblocked," he wrote. "But do not change your VPN settings yet. Because the government has the plug on the Internet. It can pull it whenever it wants." When the micro-blogging service wasn't live in Turkey by Thursday morning, critics started pushing, fearing that the government may ignore the order. Lawmaker Sezgin Tanrikulu of the secular main opposition Republican People's Party, warned that defying the ruling "would mean an abuse of power" while President Abdullah Gul, a regular Twitter user, said the bans on Twitter and YouTube now needed to be lifted. After the service returned, San Francisco-based Twitter said: "We are encouraged by the news from Turkey today and welcome our Turkish users back to Twitter." The United States, which offered rare criticism of ally Turkey over its crackdown on social media, also welcomed the move. "Welcome back to Twitter #Turkey. Good decision by constitutional court. @YouTube still offline," tweeted Rick Stengel, the undersecretary of state for public diplomacy. - 'Anchor of stability' - Erdogan had ordered the Internet curbs in the lead-up to key local elections last Sunday, in which his party chalked up sweeping wins despite the claims of sleaze and graft and a harsh police crackdown on protesters last June. Polling has shown that the Twitter and YouTube bans -- despite earning rebukes from Brussels, Washington, rights group Amnesty International and a host of the world's literary greats -- had little effect on Erdogan's conservative Muslim loyalists. Research centre Ipsos found that only 3.6 percent of AKP supporters said they had been influenced by the Internet blocks, and three quarters said the corruption claims had "no effect". Millions of Turks approve of Erdogan, despite criticism of a growing authoritarianism, because of the strong economic growth seen during his 11-year rule, analysts say. "The Turkish economy is betting on Erdogan as an anchor of stability, and so are the people," said Michael Meier of German think-tank the Friedrich-Ebert-Foundation. "The corruption allegations are there, but at times of economic growth voters are pragmatic. That's because there's still enough left of the cake to go around." Meier said "Erdogan has been able to touch the Turkish soul and pride ... To many he embodies the dream of rising from a poor Istanbul neighbourhood to head of government."