ANKARA, Turkey -- Turkey's state-run TRT television says 10 people have gone on trial, accused of "terrorism" for hacking Turkish government and police websites.

The 10 defendants are accused of links to the hacking group RedHack, which attacked the website of the police headquarters and other government offices earlier in the year. A prosecutor has charged them with cybercrimes and acting on behalf of a terrorist group.

Turkey has introduced legislation to fight hacking and other cybercrimes. But the trial has further raised human rights concerns in Turkey, where anti-terrorism laws are frequently used to prosecute rights activists.

The defendants face between eight and 24 years in prison if convicted.

They have rejected the charges, insisting they shared news about the RedHack on social media but are not part of the group.