A Manhattan judge has ordered Airbnb to comply with city subpoenas seeking user data in an investigation of allegedly illegal property rentals, but said production would be tailored to protect the privacy of hosts.

Manhattan Supreme Court Justice James E. d’Auguste late on Thursday said the city was well within its rights to review company information pertaining to rental transactions in Manhattan, Brooklyn and Queens dating back to 2011.