Cameron announced the move as part of measures to stop extreme sexual images he said were "corroding childhood." Critics, however, said the measures were at best hard to implement and at worst a form of censorship.
(Also see: British PM urges Google, Yahoo to act on child pornography)
In a speech to a children's charity, Cameron said that "family-friendly" filters would become the default setting for new customers by the end of the year, and only account-holders would be able to change them.
He also announced a proposal to make it a crime to possess violent pornography containing simulated rape scenes, and said Google and other search engines would be asked to block searches based on certain phrases.
Anti-pornography activists welcomed the announcement,
"This isn't about censorship or restricting freedom, it's simply about protecting children whilst allowing adults to do as they choose within the law," said Peter Wanless, chief executive officer of the National Society for the Prevention of Cruelty to Children.
Cameron said it was not entirely clear how the measures would work, but service providers should be able to come up with solutions.
"If there are technical obstacles to acting on this, don't just stand by and say nothing can be done; use your great brains to overcome them," he said.
"You're the people who have worked out how to map almost every inch of the earth from space, who have algorithms that make sense of vast quantities of information. You're the people who take pride in doing what they say can't be done."
But Padraig Reidy of free-speech group Index on Censorship said the proposals amounted to "a kind of default censorship."
"If a filter is set up as a default then it can really restrict what people can see legitimately," he told BBC radio. "Sites about sexual health, about sexuality and so on, will get caught up in the same filters as pornography. It will really restrict people's experience on the web, including children's."
Columnist Nick Cohen, of the Spectator magazine, said recent disclosures about government snooping should make people wary of giving companies and authorities personal information - such as a desire to view pornography.
"The expansion of legislation prohibiting pornographic images may sound equally reasonable until you remember it gives more powers to police and prosecutors," he wrote. "The record shows they cannot be trusted to use them justly."
For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.