A unique Nova Scotia law aimed at squelching online harassment is being used for the first time to reach beyond Canada's borders to determine the identity of a cyberbully.

A spokesman for the province's CyberScan unit says a Nova Scotia Supreme Court judge has issued an order under the province's new Cyber-safety Act demanding information from Google, Facebook, Instagram, Pinterest and Snapchat.

Roger Merrick, the province's director of public safety, says the order is seeking records that could identify an alleged cyberbully, including home addresses, email addresses, user names, given names, account names and IP addresses.

Merrick says the order is the first of its kind in Canada as Nova Scotia is the only province with cyberbullying legislation.

He says the case involves a young woman in Halifax who has allegedly received threatening and harassing messages from an unknown person or persons accused of hacking her social media accounts.

Merrick says he can't reveal more information because an investigation is underway and he's concerned the accused might start deleting data.