There is no solution!
No matter what legal way will be closed, there will always be a new illegal way that opens.
The best thing would be to limit the revenues from one movie or song or book or software package to a certain expected value and beyond that, to open it to the public because in any case, you can’t win the public.
Thousands of security expert can’t overcome millions of hackers!