Hapless Robert Clarke was about to board a plane from London Heathrow airport to Jordan in September to join up with Kurdish fighters when he was stopped by anti-terror police.
But unemployed Clarke refused to give detectives the PIN number for his smartphone so they could examine it.
He was arrested for failing to cooperate and bailed to his home his address in Pembrey in south Wales.
He pleaded guilty to obstructing or frustrating a Schedule Seven search under the Terrorism 2000 Act.
But Westminster Magistrates Court heard the 23-year-old later received death threats from people claiming they were Islamic extremists after news of his arrest broke.
Karina Claire, mitigating, said Clarke had wanted to protect “women and children” and that his cause was “humanitarian”.
She told the court Clarke had moved to an address in London after receiving threats from extremists.
She said: “As a result of press coverage he was sent extremely nasty threats from Islamic Extremists or people purporting to support Islamic Extremism.
“When he went into custody, I received a phone call from a member of staff at the prison he went to and they had concerns about his safety.”
Police contacted him four times to advise him of the dangers of travelling to Syria and had also given him leaflets on the issues.
District Jude John Zani told Clarke: “You are 23 today.
“I am afraid Mr Clarke we live in difficult and potentially dangerous times when frustration has to be relaxed when you’re asked to supply important information by police officers, who are merely doing their job trying got keep everyone, including yourself safe.
“Nobody knows what was on your phone because you never handed over your pin.
“Had you not served the time you have you would almost certainly be going to prison.”
Taking into account his early guilty plea and the time spent in custody he handed Clarke a 12 months community order, 50 hours of unpaid work and £85 in victim surcharge.
He was also given a 12 month ban on travelling abroad.
This article passed through the Full-Text RSS service – if this is your content and you’re reading it on someone else’s site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.
Recommended article: The Guardian’s Summary of Julian Assange’s Interview Went Viral and Was Completely False.