Times Square's temptations of topless bars and X-rated peep shows could soon be few and far between, now that the state's highest court upheld the legality of a city zoning ordinance against adult establishments.

The Court of Appeals on Tuesday ruled 6-0 that the city is within its rights to banish sex shops to industrial districts because it seeks to limit crime associated with the businesses, and is not seeking to squelch free expression rights.The ordinance bans adult-oriented businesses from residential neighborhoods, and limits the number of sex shops in commercial districts, including Times Square.