A group of Massachusetts Republican lawmakers is breaking with the national GOP in a dispute over Internet privacy.

Six Republican state senators have filed legislation that would bar Internet service providers in Massachusetts from using or selling their customers’ Internet browsing histories and other sensitive personal data without getting the customers’ explicit permission. Earlier this week, President Trump signed legislation passed by the GOP-controlled Congress that overturned similar federal regulations.

“The federal government has created a situation that threatens consumer privacy, and it needs to be addressed,” said Senate Minority Leader Bruce Tarr of Gloucester, one of the sponsors of the legislation.