Wikipedia was back online in Turkey on Wednesday for the first time in nearly three years after a Turkish court lifted a government ban on the website.

The ban was lifted and access resumed hours after Turkey's Official Gazette reported details of a ruling made by the country's Constitutional Court.

Last month, a 10-to-six majority ruled in favor of the online encyclopedia, saying that the ban violated freedom of expression.

Internet users in Ankara and Istanbul reported having access a few hours later.

Watch video 12:44 Share Conflict Zone Q + A with Ibrahim Kalin Send Facebook google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink https://p.dw.com/p/3Tq9n Does Turkey still want to be a member of the EU?

Free speech or 'smear campaign'?

Turkey had blocked the website in April 2017, citing Wikipedia's refusal to remove content that said the Turkish government was supporting terrorist organizations, calling it a "smear campaign."

The community-generated website had said it was opposed to censorship. Wikipedia fought the ban in court, escalating the case to Turkey's highest court in May 2017 after talks with officials and a challenge in a lower court failed to restore access.

The ban had legal footing under a law that allows the government to block websites that it says pose a threat to national security.

Turkey had been the only other country besides China to totally block access to Wikipedia.

Activists have criticized the crackdown on free speech in Turkey, which intensified following the failed military coup against the regime of President Recep Tayyip Erdogan in 2016.

Tens of thousands of websites still cannot be accessed from Turkey. Access to YouTube was blocked for two years over videos that insulted the founder of the Turkish republic.

kp/sms (AFP, Reuters)

Every evening, DW sends out a selection of the day's news and features. Sign up here.