The US House of Representatives has passed a cyber-security bill amid a veto threat from President Barack Obama.
The Cyber Intelligence Sharing and Protection Act (Cispa), would allow the government to access web users' private data on suspicion of a cyber threat. It would also allow easier information-sharing between security agencies and private web firms.
In a statement on Wednesday, the White House said Obama would veto the act if it reached his desk.
The bill passed the House by a margin of 248 votes to 168. Cyber-security legislation is also being considered in the US Senate, but its bill differs considerably from Cispa and is not yet scheduled for a vote.
Before its passage, the House amended the bill to cover information garnered for the investigation of cyber-security crimes, protection of individuals from death or serious bodily harm and the protection of minors from exploitation.