@Liza3236 I don't know about your local laws, but it is true that Airbnb doesn't do anything to prevent unlawful listings in most places that have banned or restricted them. But cities can force Airbnb to turn over your data when they seek to enforce the laws, so it's quite risky to have an illegal listing.
You'll have to research the specific restrictions for your area to find out what is and isn't allowed.