A law intended to protect victims of domestic violence and harassment is being used to silence journalists.