Lock the "uploads" endpoint in Strapi

I have multiple files stored in the media library in Strapi, and I just noticed that anyone, who can guess a file name, can just use /uploads/filename and they will access the file. Is there a way to lock this endpoint so only authorised users can access it?