Brazil President Dilma Rousseff is asking lawmakers to get to work on legislation that would force foreign Internet companies to store all data about their Brazilian clients on servers based in the country. 

The “Internet constitution” bill has lingered in the lower house since 2011, but the issue has taken on new urgency after repeated reports of Internet spying by the US National Security Agency (NSA) in Brazil.  President Rousseff and other officials are reportedly angry at the US after learning that the NSA’s espionage programs targeted their communications.  The revelations come from reporter Glenn Greenwald, working with Globo television based upon documents unleashed by fugitive US intelligence leaker Edward Snowden.

Where the earlier version of the bill would have exempted the biggest American companies, the new bill would force Facebook, Google, and others to keep their servers on Brazilian soil.  That way, they would be governed by Brazil’s privacy laws.

A senior Brazilian official says Rousseff is considering urging other countries to take similar measures when she speaks at the United Nations General Assembly later this month.