Police say 27-year-old Danny Heras set up his cellphone to record people who used the unisex bathroom.
It happened Nov. 1 at the Brazen Fox in White Plains, according to officials.
Heras appeared in White Plains City Court Thursday. He faces a charge of unlawful surveillance. A judge ordered him to stay away from the restaurant.
Officials say Heras was a patron at the restaurant and that he did not work there.
Heras is due back in court in January.