FILE PHOTO: A policeman stands guard as members of the Muslim community visit Al-Noor mosque after it was reopened in Christchurch, New Zealand, March 23, 2019. REUTERS/Edgar Su/File Photo

SYDNEY (Reuters) - Australia has ordered internet service providers to block access to eight websites still showing footage of deadly attacks on two mosques in New Zealand earlier this year.

A lone gunman armed with semi-automatic weapons attacked Muslims attending Friday prayers in Christchurch on New Zealand’s South Island on March 15, killing 51 people in the country’s worst mass shooting. The attacker broadcast the shooting live on Facebook, and footage was widely shared.

Most websites quickly removed links to the video, but Australia’s eSafety commissioner Julie Inman Grant said on Sunday eight local sites had defied her requests for the content to be deleted.

“We cannot allow this heinous material to be used to promote, incite or instruct in further terrorist acts,” Grant said in an emailed statement.

The blocking of the eight websites comes amid a concentrated effort by Australia to clamp-down on the sharing of violent content online.

Australia in April passed legislation that allowed Canberra to fine social media companies up to 10% of their annual global turnover and imprison executives for up to three years if violent content is not removed “expeditiously”.

It is now an offense in Australia for companies such as Facebook Inc and Alphabet Inc’s Google, which owns video sharing site YouTube, not to remove any videos or photographs that show murder, torture or rape without delay.

Companies must also inform Australian police within a “reasonable” timeframe.