Bail has been revoked for a former Qantas cleaner convicted of producing a do-it-yourself terrorism handbook.

In 2009, 42-year-old Belal Khazaal was jailed for 12 years before he won an appeal which quashed his conviction and ordered a new trial.

But this morning the High Court reversed that decision, allowing an appeal by the Commonwealth which reinstates his conviction and sentence.

The former Qantas cleaner was found guilty of compiling a document connected with assisting a terrorist act.

His book, written in Arabic, included threats against diplomats and military staff and assassination methods, including remote detonations of devices, letter bombs and sniper attacks.

The 110-page handbook, called Provisions on the Laws of Jihad, was published after being put together over three days with material from the internet in 2003.

In the Supreme Court in Sydney this afternoon his bail was revoked and he was taken back into custody.