The final version of a controversial new EU copyright law has been agreed after three days of talks in France.
Google has been particularly vocal about the proposed law, which it says could "change the web as we know it".
Article 13 of the EU Copyright Directive states services such as YouTube could be held responsible if their users upload copyright-protected movies and music.
In a few weeks, MEPs will vote to decide whether it becomes law.
The EU last introduced new copyright laws in 2001. The EU says it wants to make "copyright rules fit for the digital era", but not everyone agrees with the proposed changes.

If the UK leaves the EU with a deal, and the directive becomes law, it would apply to the UK during any transition period.
that covers how "online content sharing services" should deal with copyright-protected content, such as television programmes and movies.
It refers to services that primarily exist to give the public access to "protected works or other protected subject-matter uploaded by its users", so it is likely to cover services such as YouTube, Dailymotion and Soundcloud.
However, there is also a long list of exemptions, including:
Article 13 says content-sharing services must license copyright-protected material from the rights holders.
If that is not possible and material is posted on the service, the company may be held liable unless it can demonstrate:
These rules apply to services that have been available in the EU for more than three years, or have an annual turnover of more than €10m (£8.8m, $11.2m).
Article 13 says it shall "in no way affect legitimate uses" and people will be allowed to use bits of copyright-protected material for the purpose of criticism, review, parody and pastiche.
Critics say it would be impossible to pre-emptively license material in case users upload it.
and called it an "impossible feat".
Article 13 does not force companies to filter what users are uploading, although critics say companies will be left with no choice.
YouTube already has its Content ID system, which can detect copyright-protected music and videos and block them. But critics say developing and implementing this type of filter would be too expensive for small companies or start-ups.
Others have warned that algorithms often make mistakes, and might take down legitimately used content.
"Filters will subject all communications of every European to interception and arbitrary censorship if a black-box algorithm decides their text, pictures, sounds or videos are a match for a known copyrighted work,"
Article 13 does say services must put in place a "complaint and redress mechanism" so that their users can quickly resolve disputes if their content is blocked by mistake.
Many in the entertainment industry support Article 13, as it will hold websites accountable if they fail to license material or take it down.
"This legislation will be the first time anywhere in the world that there is absolute confirmation that user upload services are covered by copyright and need a licence," said Helen Smith of the Independent Music Companies Association.
Before the final text of the directive was agreed, there were three versions: one by the European Parliament, one by the Council of the EU, and one by the European Commission. They worked together to produce the final version of the text.
YouTube had warned that the European Parliament's original draft was its worst-case scenario.
It dramatically claimed it would have to block existing videos and new uploads from creators in the EU, and encouraged prominent vloggers to make videos about Article 13.
It warned its Content ID system only worked if rights-holders engaged with it and "provided clarity" about what material belonged to them. It said it would be "too risky" to let anybody in the EU upload anything at all.
The final version of Article 13 says services must make "best efforts" to remove copyright-protected videos in cases where "the rights holders have provided... the relevant and necessary information".
That seems like a win for YouTube.
In a statement, Google said: "We'll be studying the final text of the EU copyright directive and it will take some time to determine next steps. The details will matter, so we welcome the chance to continue conversations across Europe."
However, lawyer Kathy Berry, from Linklaters, said Article 13 still contained some "broad and ambiguous terms", such as the requirement for services to demonstrate "high industry standards of professional diligence".
She said it would be "likely to result in an ongoing lack of legal and commercial certainty" until legal cases set a precedent and "flesh out" the directive.
The proposed law will face a final vote in the European Parliament in the next few weeks. If it passes, it will be implemented by national governments over the next two years.
Source: bbc.com