In the United States, the First Amendment prohibits the government from restricting most forms of speech. Section 230 of the Communications Decency Act, which was passed in 1996, protects websites from lawsuits if a user posts something illegal, although there are exceptions for copyright violations, sex work-related material, and violations of federal criminal law.
Read more at The Verge