Amnesty International on Wednesday accused Facebook of “caving” to Vietnam’s strict censorship regime, after the US tech giant confirmed it was blocking content deemed illegal by the country’s communist government.

Authorities regularly sentence domestic critics to harsh prison terms but have come under fire recently for targeting dissent on the world’s most popular social network.

Facebook is a popular platform for activists in Vietnam, where all independent media is banned, but the company confirmed in a statement to AFP that it had been instructed by Hanoi to restrict access to content “deemed to be illegal”.

“We have taken this action to ensure our services remain available and usable for millions of people in Vietnam, who rely on them every day,” a spokesperson said.

But Amnesty said the decision was “a devastating turning point for freedom of expression” in the country.