Online casinos are legal in the neighboring state New Jersey, but players in New York still can not access the sites unless in NJ.
This means there aren’t any current penalties for those just playing. The gambling laws in New York aren’t very clear and only seem to apply to casinos trying to conduct operations over the internet.