Relative Content

Tag Archive for digital-oceandigital-ocean-spaces

Does Digital Ocean spaces api token has granular permissions?

I was trying to create an API key for programmatically access DO space objects. When I try to create an API key, it looks like the key will get full permission to do any operations on all the spaces. When I checked the documentation, I saw this:

How can I restrict access to files on DigitalOcean Spaces to only be accessible through my website?

I’m using DigitalOcean Spaces to host files for my website, and I want to restrict access to these files so that they can only be accessed when they are embedded or linked from my website. For example, if someone tries to directly access a file by typing its URL (e.g., https://cdn.example.com/image.png) into their browser, they should not be able to view or download the file. However, if the file is embedded in my website using an HTML <img> tag or linked to from my site, it should be accessible.