One-time downloads for software distribution using DO Spaces

Posted July 21, 2020 297 views
DigitalOceanDigitalOcean Spaces

I want to allow my clients to download a .zip archive if they provide a correct license key that I check using an API.

Currently, I do that by hosting the .zip on a PHP server, and having a download.php?license=YOUR_KEY that checks the key and returns the file if ok, an error otherwise.

I want to use spaces to DO spaces host the .zip file. How can I allow clients to download the file only if the license is valid?

A solution that I thought of would be to still have the download.php, but if the license is valid I would redirect to a one-time download link to the DO Spaces file.

*Is there any way to create one-time download links for a file in DigitalOcean spaces? *If not, any other solution to allow clients to download a file only if a condition is met?

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.

Submit an Answer
1 answer


I don’t think that this is yet possible out of the box but it sounds like a great idea!

The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

- Bobby.