Turkey's ban on Twitter ahead of bitterly contested elections sparked public fury over a "digital coup" on Friday, brought international condemnation and triggered a rift between prime minister and president.

Twitter must get a legal representative in Turkey and agree to block individual accounts if it is to resolve a row that has led the government to block access to the service, Industry Minister Fikri Isik said on Friday.

Courts blocked access to Twitter after Prime Minister Tayyip Erdogan's defiant vow, on the campaign trail on Thursday ahead of March 30 local polls, to "wipe out" the social media service, whatever the international community had to say about it.

"One cannot approve of the complete closure of social media platforms," Gul tweeted, voicing his hope that the ban would be short-lived and setting himself publicly at odds with the pugnacious prime minister.

Corruption scandal
Erdogan, who has dominated Turkish politics for 11 years, is battling a corruption scandal that has been fed by social media awash with alleged evidence of government wrongdoing. He did not mention the Twitter ban at two campaign rallies on Friday.

Turkey's main opposition party said it would challenge the ban and file a criminal complaint against Erdogan on the grounds of violating personal freedoms.
The country's bar association filed a separate court challenge.

Twitter users called it a "digital coup", some comparing Turkey to Iran and North Korea, where social media platforms are tightly controlled. There were also calls for protests.

"Waking up to no Twitter in Turkey feels like waking up to a coup. The modern equivalent of occupying the radio stations," United States author and journalist Andrew Finkel, who has reported from Turkey for more than 20 years, wrote on his Twitter feed.

The ruling AK Party has already tightened internet controls, handed government more influence over the courts, and reassigned thousands of police and hundreds of prosecutors and judges as it fights the corruption scandal, which Erdogan has cast as a plot by political enemies to oust him.

Conciliatory figure
Gul, seen as a more conciliatory figure than Erdogan, has been hesitant to openly criticise the prime minister in the run-up to the election, despite the brewing scandal and the latter's increasing claims of a conspiracy against his government.

The two co-founded the Islamist-rooted AK Party and Gul is seen as a potential successor to Erdogan should the latter run for the presidency in an August vote. His critics say his own ambitions have made him too cautious about challenging Erdogan, by far the most powerful figure in the ruling party.

Telecoms watchdog BTK said the courts had blocked Twitter after citizens complained that it was breaching privacy. It said the social media service had ignored previous requests to remove content.

"Because there was no other choice, access to Twitter was blocked in line with court decisions to avoid the possible future victimisation of citizens," it said.

European Union enlargement commissioner Stefan Fuele said the move raised grave concerns and "cast doubt on Turkey's stated commitment to European values and standards". Turkey has been seeking membership of the EU for decades.

German disapproval
The government of Germany, home to the largest Turkish diaspora in Europe, said the move did not fit with its view of freedom of expression, while the British foreign office said social media had a "vital role to play in a modern democracy".

Turkey's financial markets were unsettled, with the lira weakening to 2.24 against the US dollar, shares underperforming emerging markets peers and the benchmark 10-year bond rising to 11.24% from 11.12%.

San Francisco-based Twitter said it was looking into the matter but had not issued a formal statement. The company did publish a tweet addressed to Turkish users instructing them on how to continue tweeting via SMS text message.

Erdogan was scathing about the service on Thursday.

"Twitter, mwitter!," he told thousands of supporters at a rally, in a phrase translating roughly as "Twitter, schmitter!".

"We will wipe out all of these," Erdogan said. "The international community can say this, can say that. I don't care at all. Everyone will see how powerful the Republic of Turkey is," he said in a characteristically unyielding tone.

Deputy Prime Minister Ali Babacan said he expected the block to be temporary. Finance Minister Mehmet also played down concerns, telling state broadcaster TRT Haber that the closure "does not derive from a prohibitive mentality" and was nothing other than the application of a court ruling. – Reuters