How is it possible to activate the hotlink for the images or videos? I’m using digital ocean space

2 comments
  • Can you provide more details on what you mean by hotlink?

    There’s a quickshare link feature in spaces that can be used from the UI by clicking the MORE dropdown.

  • I am using a translator, I will try to explain myself to the best of my ability.

    I have a video and image site, which files are uploaded and stored to DO Space …
    there are people who steal those videos and images and share them in another site’s,

    what I want is that those videos and images can only be viewed on my site
    its possible?

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.

×
1 answer

I had to go refresh my internet lingo, if by hotlink you mean that you would like to embed an image or video file from spaces from within your own site (for example mydomain.com) you will need to update CORS policies, and you should also enable CDN for SPEED!

  1. Set CORS policies to allow embedding of content from your domain. https://www.digitalocean.com/docs/spaces/how-to/cors/ - you will want to add your exact domain including subdomain and HTTP/HTTPS https://www.mydomain.com and check the GET box

  2. Enable CDN https://www.digitalocean.com/docs/spaces/how-to/enable-cdn/ - _and make sure you are using the CDN URLs for your images and video, not the regular ones.

Submit an Answer