Report this

What is the reason for this report?

Spaces Domain and IP Whitelisting

Posted on July 31, 2022

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?



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.