Restrict access to the file manager without permission

System Information
  • Strapi Version:
    4.21.0
  • Operating System:
    macOS Sonoma 14.1.1
  • Database:
    SQLite
  • Node Version:
    v20.9.0
  • NPM Version:
    10.1.0
  • Yarn Version:
    1.22.19

Hey friends,

I developed a sales system using strapi.
The products are digital products.
I want to generate for each client a unique download link for files stored in the media manager.
The problem is that there is no possibility to limit file viewing permission.
Does anyone know of a way I can restrict outside access to the files?
It is important for me to give each file permission separately.

I generate a download link for them using a custom code.