Look into pre-signed URLs. The script should not protect the objects, but give access to x amount of time. You also don't need to set it as expired, as the expiration time is embedded in the token.
The page in the documentation is named "mc share download"
```
mc share download --expire DURATION ALIAS/PATH
```
I would rather use a different language to handle this (if there is more logic), or a bash script, to be executed from your CMS. I
|