In 2010, Coakley helped draft a Massachusetts law regulating obscenity on the internet. In a decision celebrated by civil rights advocates, the law was overturned by a federal judge after a coalition of booksellers and website publishers sued, claiming the new law was unconstitutional and would hold criminally liable anyone who operates a website containing nudity or sexual material, including subjects such as art or even health information such as pregnancy or birth control. They said the law failed to distinguish between open websites and obscene material. Federal Judge Rya W. Zobel stated that the plaintiffs demonstrated "without question" that the law violated the First Amendment by infringing on and inhibiting free speech.