Cairo: An Egypt court has handed a lawyer 10 years in jail for insulting the president and “inciting terrorism” in a Facebook post, a judicial official and his lawyer said Thursday.

The court in the coastal city of Alexandria on Wednesday also sentenced lawyer Mohammad Ramadan in absentia to five years’ house arrest and an internet ban for the same period, the official said.

Ramadan’s lawyer, Mohammad Hafez, slammed what he called a “harsh” ruling, which he said was intended as “a message for all those who criticise the regime”.

Ramadan was arrested in December and detained for two days after allegedly insulting President Abdul Fattah Al Sissi in a Facebook post.

The defendant has described the trial as “fabricated”.

Amnesty International on Thursday criticised the sentence.

“It is utterly shocking that the Egyptian authorities have imposed such a heavy sentence against someone who was exercising his right to freedom of expression,” the rights group’s Najia Bounaim said.