Ariz. Rev. Stat. § 13-3513
B. It is a defense in any prosecution for a violation of subsection A that the defendant has taken reasonable steps to ascertain that the person is eighteen years of age or older and has taken either of the following measures to restrict access to the material that is harmful to minors: