California on Monday joined more than a dozen other states that have introduced internet privacy legislation after Republicans in Washington and the Trump administration repealed President Barack Obama-era rules limiting what AT&T, Comcast and other broadband providers can disclose about their customers’ online habits.

Assembly Bill 375, patterned after the federal provisions, would require internet service providers to obtain “opt-in” consent from customers before using or selling their information, such as what sites they’ve visited, how much time they’ve spent there and what apps they’ve downloaded. It would also bar ISPs from charging a penalty or offering a discount based on whether a customer gives their consent.