Private media documents

Hi! I setup my prismic repo to be private and accessed only by access token but when uploading a media document, a pdf in this case, having the link I can still access it outside of my app. Is there anyway to block access to the media files?

Hey @levijesica

There is no way to make the media private at the moment.
The only way to do that is to create a proxy that will replicate our media and secure it with your own specification.

Nothing that we can do at the moment; I will still track this as a feature request.

If you're worried about old PDF files being indexed by Google, we've actually partially solved this a while ago. You can learn more about this here:

Also, If you need to remove a file you've added to your Media Library, you can send it to us in a private dm, and we can permanently delete it for you.

Hi @Paulina, the issue is not the indexing. Is that those PDFs are not meant to be public but to be behind a pay wall. If anyone can access the link they could access them without going through our site. Allowing access only from a specific domain would be enough in this case. I guess we'll have to find a different solution to keep our documents for now.

Thank you

1 Like