New surveillance powers given to police and security services will allow access to personal web history under the provisions of the draft Investigatory Powers Bill announced in Parliament by UK home secretary Theresa May.
"The task of law enforcement and security and intelligence agencies has become vastly more demanding in this digital age. It is right that those protecting us have the powers they need to do so but it is the role of government and Parliament to ensure there are limits to those powers," May said in the House of Commons.
The details would include forcing firms to hold a schedule of which websites someone visits and the apps they connect to through smartphones or tablets.
Police and other agencies would then be able to access these records in pursuit of criminals and also seek to retrieve data in a wider range of inquiries, such as missing people.
More From This Section
Local councils will retain some investigatory powers, such as surveillance of benefit cheats, but they will not be able to access this online data.
"But I am also clear that the exercise and scope of investigatory powers should be clearly set out and subject to stringent safeguards and robust oversight, including 'double-lock' authorisation for the most intrusive capabilities," he said.
May said the bill will establish "world-leading oversight" to govern an investigatory powers regime which is more open and transparent than anywhere else in the world.
Terming the bill as "one of the most important this House will discuss", Prime Minister David Cameron said, "We must help the police and security and intelligence services to keep us safe."
When police or security agencies apply to intercept someone's communications, their plans would have to be first signed off by the home secretary - as is currently the case - but then approved by one of these judges, something which has been termed a "double lock".