Question

Spaces Domain and IP Whitelisting

Is there a way of restricting access to my spaces objects from other sites or IPs and allow only my website to access them? Suppose I have an e-Learning site wit videos that students should pay to learn, I don’t want them to access the videos out of my website or even copy the link and download them. How do i archive this with Spaces?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Restricting your Space for a specific IP is not possible, however, what you could do is use the Access Control Lists so that you could restrict the access to the objects that you upload to your bucket:

https://docs.digitalocean.com/reference/api/spaces-api/#access-control-lists-acls

To make a bucket or object private, create an AccessControlPolicy only containing a FULL_CONTROL grant for the owner.

Hope that this helps!

Best,

Bobby