Brazil's Senate unanimously approved groundbreaking legislation that guarantees equal access to the internet and protects the privacy of Brazilian users in the wake of US spying revelations.
President Dilma Rousseff, who was the target of US espionage according to documents leaked by former NSA analyst Edward Snowden, plans to sign the bill into law. She will present it on Wednesday at a global conference on the future of the internet, her office said in a blog.
The legislation, dubbed Brazil's "Internet Constitution," has been hailed by experts, such as the British physicist and World Wide Web inventor Tim Berners-Lee, for balancing the rights and duties of users, governments and corporations while ensuring the internet continues to be an open and decentralised network.
To guarantee passage of the bill, Rousseff´s government had to drop a contentious provision that would have forced global internet companies to store data on their Brazilian users on data center servers inside the country.
The rule was added to the bill after revelations last year that the US National Security Agency had spied on the personal internet communications of Brazilians, including those of Rousseff among other world leaders.
Instead, the bill says companies such as Google and Facebook will be subject to Brazil's laws and courts in cases involving information on Brazilians, even if the data is stored on servers abroad.
The government refused to drop a net neutrality provision that was fiercely opposed by telecom companies because it bars them from charging higher rates for access to content that uses more bandwidth, such as video streaming and voice services like Skype.
The legislation protects freedom of expression and information, establishing that service providers will not be liable for content published by users, but they must comply with court orders to remove offensive or libellous material.
The bill limits the gathering and use of metadata on internet users in Brazil.
Following the spying revelations by Snowden, including allegations that the NSA secretly collected data stored on servers by internet companies such as Google and Yahoo, Brazil sought to force them to store data on Brazilian servers in the country.
internet companies complained that would push up their costs and create barriers to the free flow of information.
The revelations of NSA espionage using powerful surveillance programs upset relations between the United States and Brazil and led Rousseff to cancel a state visit to Washington in October and denounce massive electronic surveillance of the internet in a speech to the UN General Assembly.
Rousseff and German Chancellor Angela Merkel, another leader that the NSA was alleged to have spied upon, have led international efforts to limit digital espionage over the internet.