I do not know about the technical details. Is it more effort than putting something in your robots.txt or putting a meta tag in your HTML?
That's why every single person who knows what they are talking about has warned about this law from the beginning, but they were all ignored. Now this deals incredible damage to the future of EU internet companies and helps established big US corps. Everyone knew that, its just business as usual with the corrupt to the core and incompetent EU.
A much better law would have standardized a set of headers or meta tags, similar to what Google uses, to allow publishers to specify allowed usage and created penalties for aggregators that don't respect those headers.