So just write in a contract "This residence can not be used as a hotel".
That's a very standard clause in most leases, and in some agreements that mutually agree on restrictions of use of owner-occupied housing. City zoning regulations also apply to many of these situations. Right now there are many, many, many (but not all) Airbnb rooms that violate multiple legal agreements or applicable laws that apply to the person offering the rooms on Airbnb. It remains to be seen what form of enforcement will work best to make sure those lease agreements or other contracts are honored, and the zoning regulations obeyed.
EDIT: Several comments here mention the legal history of how regulations developed in the first place. As Justice Oliver Wendell Holmes, Jr. wrote, "The life of the law has not been logic; it has been experience."
That's a very standard clause in most leases, and in some agreements that mutually agree on restrictions of use of owner-occupied housing. City zoning regulations also apply to many of these situations. Right now there are many, many, many (but not all) Airbnb rooms that violate multiple legal agreements or applicable laws that apply to the person offering the rooms on Airbnb. It remains to be seen what form of enforcement will work best to make sure those lease agreements or other contracts are honored, and the zoning regulations obeyed.
EDIT: Several comments here mention the legal history of how regulations developed in the first place. As Justice Oliver Wendell Holmes, Jr. wrote, "The life of the law has not been logic; it has been experience."
https://en.wikiquote.org/wiki/Oliver_Wendell_Holmes,_Jr.