The criminal provisions of section two of this article do not apply to:
(a) A bona fide school, in the presentation of local or state approved curriculum;
(b) A public library, or museum, which is displaying or distributing any obscene matter to a minor only when the minor was accompanied by his or her parent;
(c) A licensed medical or mental health care provider, or judicial or law-enforcement officer, during the course of medical, psychiatric, or psychological treatment or judicial or law-enforcement activities;
(d) A person who did not know or have reason to know, and could not reasonably have learned, that the person to whom the obscene matter was distributed or displayed was a minor and who took reasonable measures to ascertain the identity and age of the minor;
(e) A person who routinely distributes obscene matter by the use of telephone, computer network or the Internet and who distributes such matter to any minor under the age of eighteen years after the person has taken reasonable measures to prevent access by minors to the obscene matter; or
(f) A radio or television station, cable television service or other telecommunications service regulated by the federal communications commission.