Volokh’s conduct is not within the ambit of section 527.6’s definition of harassment. Volokh’s identification of Luo in a law review article and on his blog was not unlawful violence or a credible threat of violence. There was no evidence that Volokh stalked Luo, made harassing phone calls, or sent her harassing correspondence. Volokh’s writings served a legitimate purpose—a discussion on how a litigant’s use of a pseudonym could affect open access to court proceedings and impede investigations into a litigant’s credibility. Accordingly, Luo’s claim for a section 527.6 anti-harassment injunction lacked minimal merit, and the trial court did not err in granting Volokh’s Anti-SLAPP motion against Luo.