SACRAMENTO, Calif. (AP) – Short-term rental housing websites such as Airbnb and VRBO will be required to warn users that they may be violating their leases under a new California law.

Gov. Jerry Brown announced Tuesday that he signed SB761 by Democratic Sen. Isadore Hall of Compton.

READ MORE: California's Power Grid Operator Urges Residents To Conserve Energy Amid Heat Wave

It requires Airbnb-type websites to notify tenants that they may be at risk of legal action or eviction if they sublet their homes. Some San Francisco tenants have received eviction notices for violating prohibitions on short-term renting.

READ MORE: Sacramento Police Officer Accused Of Domestic Violence No Longer Facing Charges

The bill was sponsored by the California Apartment Association, which says vacation rentals put other tenants in danger by bringing unscreened people into complexes.

Airbnb’s terms and conditions already tell hosts to check their leases, but they don’t mention evictions.

MORE NEWS: Sacramento Zoo Enforces Early Closures As Heatwave Hits Valley

The law takes effect Jan. 1, 2016.