A terror suspect encouraged attacks on Prince George at his primary school and warned "the royal family won't be left alone", a court has heard.
Rashid, from Nelson in Lancashire, northern England, is charged with preparing terrorism acts, which involved plans to travel to Syria to engage in fighting, and preparing to assist others to commit terrorist acts.
"A post, which we in this country will find particularly worrying, was a photograph of the young prince George at the beginning of his school term, next to a silhouette of a jihadi fighter", prosecutor Rebecca Mundy told the court.
"Next to that was a caption, "school starts early".
Husnain Rashid, 31, allegedly used messaging app Telegram to broadcast suggested targets for terror attacks, Westminster magistrates court heard this morning.
The 4-year-old prince, who is third in line to the throne, has royal protection officers with him at all times.
Then in September, a woman was arrested at the school after trying to get into the property twice within 24 hours. She was later released under caution after it was determined she was not a threat.
The prince is protected by royal bodyguards as well as London police, and the school itself also has security arrangements.
Rashid was remanded into custody.
Court artist sketch of Husnain Rashid in court in London, Dec. 6, 2017.