Facebook has blocked an unspecified number of pages that featured content allegedly insulting the Prophet Mohammed on Monday, following an order from a local court in Turkey, Mashable has learned.

On Sunday, a local court in Ankara, Turkey, threatened to block Facebook entirely if the social network didn't comply with the order. But Facebook complied less than 24 hours later and blocked the content for Turkish users, according to a source familiar with the matter who spoke to Mashable on the condition of anonymity.

See also: The countries where Facebook censors the most content

This is just the latest example of Turkey ramping up its online censorship efforts over the past few weeks. The government has repeatedly threatened to block both Facebook and Twitter if the companies didn't comply with orders to block specific content.

On Jan. 15, Turkish officials demanded that Twitter block the entire account of a local newspaper that published leaked documents relating to a military raid on a Turkish Intelligence Agency trucks convoy that was traveling to Syria in January 2014. Twitter didn't ban the entire account, but rather "the small number of tweets that discussed the national security issue referenced in the order," Twitter spokesperson Nu Wexler said at the time.

Also, on Jan. 14, a court ordered the country's Telecommunications Directorate (TİB) to ban access to websites showing Charlie Hebdo's front cover. Many cartoons in the satirical French magazine depict the Prophet Mohammed in a negative light.

Turkey is No. 2 on the list of countries where Facebook blocks the most content, according to the company's most recent transparency report.

The blocking of these Facebook pages comes just a couple of weeks after Mark Zuckerberg vowed to keep Facebook a place where people can speak freely.

"Facebook has always been a place where people across the world share their views and ideas," Zuckerberg wrote in a Facebook post following the attack at Charlie Hebdo's Paris headquarters. In the same post, Zuckerberg hinted that at times, the social network will have to cave to government requests.

"We follow the laws in each country, but we never let one country or group of people dictate what people can share across the world," he added.

The blocking of these allegedly offensive pages, "provides cover for the government's overall narrative that social media is a 'menace to society' and needs to be brought under control," Adrian Shahbaz, a researcher at Internet Freedom watchdog Freedom House, told Mashable. "While the government engages in clear political censorship to prevent the spread of damaging leaks, it can divert attention away by concentrating on the cartoons."

Turkey completely blocked access to Twitter and YouTube last year after leaks of recordings related to a potential military operation in Syria. Twitter's block was lifted after two weeks, while YouTube remained blocked for 67 days.