The Government will legislate to put its agreement with internet companies on family friendly filters into law to protect children from online pornography, the Prime Minister has said.

Under new net neutrality rules, users across the EU will be free to access the content of their choice and will no longer be unfairly blocked or slowed down.

But David Cameron told MPs during Prime Minister's Questions that Britain "actually secured an opt-out yesterday, so we can keep our family friendly filters to protect children".

His comments came as Conservative MP Amanda Solloway urged Mr Cameron to ensure children remained protected from indecent images.

The MP for Derby North said: "Yesterday the EU said that we can no longer have filters on the internet to protect our children from indecent images. I want to know what the Prime Minister is going to do to make sure that our children remain protected."

Mr Cameron replied: "Like her, I think it is absolutely vitally important that we enable parents to have that protection for their children from this material on the internet, and probably like her, when I read my Daily Mail this morning I spluttered over my Cornflakes because we worked so hard to put in place these filters, but I can reassure her, because we actually secured an opt-out yesterday, so we can keep our family friendly filters to protect children.

"And I can tell the House that we will legislate to put our agreement with internet companies on this issue into the law of the land, so that our children will be protected."

The Daily Mail has campaigned on the issue.

A No 10 spokesman said: "We will maintain the current position. We will legislate if necessary to ensure that we can keep those filters in place."

The spokesman said the PM was "very personally involved" in the introduction of filters and suggested "there is a recognition of the position we have got" in Brussels.

"The changes the EU are talking about don't come into place until the end of 2016 so it is not an immediate problem," he added.