The major technology companies must step up their fight against extremism or face new laws, the home secretary has told the BBC.

Amber Rudd said technology companies were not doing enough to beat “the enemy” on the internet.

Encryption tools used by messaging apps had become a “problem”, she added.

Ms Rudd is meeting with representatives from Google, Facebook, Twitter, Microsoft and others at a counter-terrorism forum in San Francisco.

Tuesday’s summit is the first gathering of the Global Internet Forum to Counter Terrorism, an organisation set up by the major companies in the wake of recent terror attacks.

In a joint statement, the companies taking part said they were co-operating to “substantially disrupt terrorists' ability to use the internet in furthering their causes, while also respecting human rights”.

Ms Rudd is expected to tell companies that extremists should not be allowed to upload content at all.

"That’s what we’re really trying to achieve," she told the BBC.

"What [technology companies] have been saying to us is using artificial intelligence, they’re beginning to make progress in that way.”

Privacy rights group the Electronic Frontier Foundation has expressed concern about the possibility of heavy-handed blocking of content.

It said such a move would have a significant impact on free speech online.

Encryption - a common feature of business and personal communications - was "the duct-tape that holds the internet together", said Ross Anderson, cryptography expert at the University of Cambridge.

He added that he was worried authorities and Silicon Valley firms were making an agreement behind closed doors that would ultimately undermine security.

End-to-end

In recent years, messaging services, including Facebook, Apple, and Google, have adopted end-to-end encryption, an added layer of complexity that makes it almost impossible for messages to be accessed without a user’s permission.

The measure has been heralded by the technology companies as a vital tool for privacy. But authorities around the world say end-to-end encryption has created unreachable parts of the internet.

Media playback is unsupported on your device

Media captionWhat is encryption?

Ms Rudd told the BBC that the UK government supported encryption, with caveats.

"We support its place in making sure that we have secure facilities in our daily lives,” the home secretary said.

"However, there is a problem in terms of the growth of end-to-end encryption.

"It’s a problem for the security services and for police who are not, under the normal way, under properly warranted paths, able to access that information.

“We want [technology companies] to work more closely with us on end-to-end encryption, so that where there is particular need, where there is targeted need, under warrant, they share more information with us so that we can access it.”

She said companies should give up more metadata about messages being sent via their services.

Metadata refers to information about a conversation - such as who took part, when and for how long - but not the contents itself.

When pressed on what kind of metadata she wanted, she replied: “I’m having those conversations in private.”

Technology companies are likely to resist any action that would result in them being seen to be sharing too much data with governments.