New York Penal Law
§ 65.10 Conditions of probation and of conditional discharge.
4-a. Mandatory condition for sex offenders. When imposing a sentence of probation or conditional discharge upon a person convicted of an offense defined in article one hundred thirty, two hundred thirty-five or two hundred sixty-three of this chapter, or section 255.25, 255.26 or
255.27 of this chapter, and the victim of such offense was under the age of eighteen at the time of such offense or such person has been designated a level three sex offender pursuant to subdivision six of section 168-l of the correction law, the court shall require, as a mandatory condition of such sentence, that such sentenced offender shall refrain from knowingly entering into or upon any school grounds, as that term is defined in subdivision fourteen of section 220.00* of this chapter, or any other facility or institution primarily used for the care or treatment of persons under the age of eighteen while one or more of such persons under the age of eighteen are present, provided however, that when such sentenced offender is a registered student or participant or an employee of such facility or institution or entity contracting therewith or has a family member enrolled in such facility or institution, such sentenced offender may, with the written authorization of his or her probation officer or the court and the superintendent or chief administrator of such facility, institution or grounds, enter such facility, institution or upon such grounds for the limited purposes authorized by the probation officer or the court and superintendent or chief officer. Nothing in this subdivision shall be construed as restricting any lawful condition of supervision that may be imposed on such sentenced offender.
New York Executive Law
Article 12-B - STATE DIVISION OF PAROLE
§259-c(14).
14. notwithstanding any other provision of law to the contrary, where a person serving a sentence for an offense defined in article one hundred thirty, one hundred thirty-five or two hundred sixty-three of the penal law or section 255.25, 255.26 or 255.27 of the penal law and the victim of such offense was under the age of eighteen at the time of such offense or such person has been designated a level three sex offender pursuant to subdivision six of section one hundred sixty-eight-l of the correction law, is released on parole or conditionally released pursuant to subdivision one or two of this section, the board shall require, as a mandatory condition of such release, that such sentenced offender shall refrain from knowingly entering into or upon any school grounds, as that term is defined in subdivision fourteen of section 220.00* of the penal law, or any other facility or institution primarily used for the care or treatment of persons under the age of eighteen while one or more of such persons under the age of eighteen are present, provided however, that when such sentenced offender is a registered student or participant or an employee of such facility or institution or entity contracting therewith or has a family member enrolled in such facility or institution, such sentenced offender may, with the written authorization of his or her parole officer and the superintendent or chief administrator of such facility, institution or grounds, enter such facility, institution or upon such grounds for the limited purposes authorized by the parole officer and superintendent or chief officer. Nothing in this subdivision shall be construed as restricting any lawful condition of supervision that may be imposed on such sentenced offender.
*Section 220
14. "School grounds" means (a) in or on or within any building, structure, athletic playing field, playground or land contained within the real property boundary line of a public or private elementary, parochial, intermediate, junior high, vocational, or high school, or (b) any area accessible to the public located within one thousand feet of the real property boundary line comprising any such school or any parked automobile or other parked vehicle located within one thousand feet of the real property boundary line comprising any such school. For the purposes of this section an "area accessible to the public" shall mean sidewalks, streets, parking lots, parks, playgrounds, stores and restaurants.