Airbnb's suit cites section 230 of the Communications Decency Act, widely considered the most revered law among internet companies. It's the legal protection that keeps Google from being held responsible for the actions of websites its search engine points to and that lets eBay and Amazon run expansive marketplaces where they don't have complete control over the vendors using their sites.
While Airbnb sets some rules over the people who use its website, the company is allowed to push pretty much all legal liability onto the users themselves.
"Imagine if a state or city required eBay to verify that its sellers had the appropriate local business license," said Eric Goldman, a professor at Santa Clara University School of Law, and an expert in online legal issues.
"That would be an indirect, but very clear, limitation on eBay's abilities to accept listings, and I think that's what Section 230 precludes."
The law explicitly excluded copyright violation and federal crimes from its purview.
Instead of punishing Airbnb for publishing unlawful listings, the city could enforce its short-term rental law directly against hosts who violate it.
Other than that, it's pretty much open season. Courts have repeatedly sided with companies in Airbnb's position, including websites whose users sold fake autographed sports souvenirs, defamed other users and posted sexually explicit photographs of minors.
One notable case where a website went too far involved a feature on Roommates.com, where people created personal profiles by selecting their gender and race from a series of dropdown menus, then allowing people to filter out, say, black women.
You have to actually show that it requires you to do something illegal.
Asking such questions violates federal anti-discrimination laws, and a court found that Roommates.com essentially forced people into an illegal situation. But this exception is essentially an illustration of how far the law goes, said Clay Calvert, the director of the Marion B. Brechner First Amendment Project at the University of Florida.
"You have to actually show that it requires you to do something illegal," he said.
In a blog post, Airbnb referred to the law as the "linchpin of the vibrant and successful internet we know today." By all accounts, San Francisco will face a challenging road convincing a judge that its new policy doesn't run afoul of the rule.
This doesn't necessarily mean that local laws aren't a big problem for Airbnb. Its users can still be punished, and Airbnb says that the city has already levied about $700,000 in fines against its hosts. At some point, such fines could have a chilling effect that damages the entire Airbnb economy.
On the same day the company filed its suit in San Francisco, Airbnb sent an email to users in New York urging them to pressure Gov. Andrew Cuomo into vetoing a law that would punish hosts in that state. But for now, the company suggests that San Francisco continues to go after users who aren't complying.
"Instead of punishing Airbnb for publishing unlawful listings, the city could enforce its short-term rental law directly against hosts who violate it," Airbnb says in its suit.
Airbnb left that part out of its blog post.