If any person shall willfully use a spotlight or similar lighting apparatus to cast a light upon private property used for livestock or crops without the written permission of the person in legal possession of such property, he shall be guilty of a Class 3 misdemeanor.
The prohibition of this section shall not apply to light cast by (i) permanently installed outdoor lighting fixtures, (ii) headlamps on vehicles moving in normal travel on public or private roads, (iii) railroad locomotives or rolling stock being operated on the tracks or right-of-way of a railroad company, (iv) aircraft or watercraft, (v) apparatus used by employees of any public utility in maintaining the utility's lines and equipment, (vi) emergency medical services vehicles used by emergency medical services personnel or fire apparatus used by members of fire departments in the performance of their official duties, (vii) apparatus used by any law-enforcement officer in the performance of his official duties, or (viii) farm machinery or motor vehicles being used in normal farming operations.
Va. Code § 18.2-121.2