France and the UK are considering imposing fines on social media companies “that fail to take action” against terrorist propaganda and violent content, under a joint anti-terror campaign announced Tuesday. UK Prime Minister Theresa May will discuss the proposed measures with French President Emmanuel Macron ahead of her visit to Paris today.

In a press release, the Prime Minister’s office said the campaign aims “to ensure that the internet cannot be used as a safe space for terrorists and criminals.” May and Macron will discuss “the possibility of creating a new legal liability for tech companies if they fail to remove content,” the UK release states, including potential fines.

Leaders across Europe have pressured companies like Facebook, Twitter, and Google to more swiftly remove hate speech and terrorist material online, though there are concerns that aggressive legislation could infringe on free speech. May called for stricter internet regulations following recent terrorist attacks in London and Manchester, and her government has criticized WhatsApp and other encrypted messaging services for providing terrorists with a “secret place to communicate.”

Similar measures are being debated in Germany, as well

The Prime Minister’s office says France and the UK will work with tech companies to help curb terrorist content online and develop tools to “identify and remove harmful material automatically.” Some tech companies have already begun incorporating tools to automatically detect illegal or extremist material, though experts have said that such material can be difficult to define.

“The counter-terrorism cooperation between British and French intelligence agencies is already strong, but President Macron and I agree that more should be done to tackle the terrorist threat online,” May said in a statement Tuesday. “We are united in our total condemnation of terrorism and our commitment to stamp out this evil,” she added.

The European Commission this month said that tech companies have made “significant progress” in removing violent material and hate speech, though Twitter and YouTube are still failing to abide by a voluntary “code of conduct” agreed to last year. German lawmakers are also considering legislation that would impose fines of up to €50 million ($56 million) on social media companies that fail to remove hate speech and other illegal content from their platforms. Critics say the measure would delegate too much power to private internet companies, and that it may curb freedom of speech online.