> No provider or user of an interactive computer service shall be held liable on account ofโ
> (A) any action voluntarily taken in good faith to restrict access to or availability of material that the provider or user considers to be obscene, lewd, lascivious, filthy, excessively violent, harassing, or otherwise objectionable, whether or not such material is constitutionally protected; or
> (B) any action taken to enable or make available to information content providers or others the technical means to restrict access to material described in paragraph (1).[1]
That a law is passed is not evidence that the law is constitutional or just. Sometimes large industries will even successfully lobby for laws that promote their own interests at the expense of the interests of the entire nation.
> (A) any action voluntarily taken in good faith to restrict access to or availability of material that the provider or user considers to be obscene, lewd, lascivious, filthy, excessively violent, harassing, or otherwise objectionable, whether or not such material is constitutionally protected; or
> (B) any action taken to enable or make available to information content providers or others the technical means to restrict access to material described in paragraph (1).[1]
[1] https://www.law.cornell.edu/uscode/text/47/230