Two teenagers have appeared in court accused of posting and sharing extreme right-wing content encouraging terrorism on the internet.

A 17-year-old boy from London who cannot be named for legal reasons is accused of five counts of posting messages on social media that would encourage others to commit acts of terrorism.

Appearing at Westminster Magistrates' Court on Wednesday, he spoke only to confirm his name, date of birth and address.

He appeared alongside Polish national Michael Szewczuk, 18, of Bramley, Leeds, who is accused of eight counts of publishing material that would encourage others to commit acts of terrorism.

Szewczuk stood in the dock wearing a dark hooded jacket and also spoke to only confirm his name, date of birth and address.

Some of the allegations against Szewczuk include that he posted a link on Gab - a free speech network used by far right groups - to an article called 'slaughter all women' as well as publishing a comment which said "race mixing whores get the f***ing rope".

The 17-year-old is accused of publishing an image, also on Gab, that said "rape the cops" and a message that read "annihilate the weak".

Both defendants were bailed to appear at the Old Bailey on December 20.

The court heard that the conditions of their bail include that they do not use or have stored on a device Gab, Wire or Discord.

They must not delete their internet history, emails, text messages or other messages.

The pair must also not post anything on a public or blog site which references Sonnenkrieg, Siege, Siege Culture, Atomwaffen Division, James Mason or Universal Order.

And they must surrender unlocked at the request of a police officer any electronic device in their possession.