She didn't comment horrible things on his website, only a critique of an article. He took offense to that, de-anonymized her by abusing the moderation system and looked for distasteful comments elsewhere.
I won't speak to the legality of it because I'm not qualified, but it's morally reprehensible.