I would like (preferably a Perl CGI script) a script that, when it is called, will create an IP and time dependent disposable download link for the user. For example, once a form submit image is clicked (which calls the script with a hidden filename field attached), a unique link is created for the file that will expire within XX hours, and is also IP dependent. The script should know once the link is created that every time it is called with that filename and that IP address, which actual file to serve. The user should not see the real file location. The files (if audio or video) must not be streamed to the browser, rather downloaded to the user's computer.
As third-part providers can offer this service, I will not be assigning a large budget to this project, however the preference is to have the whole thing in-house, and I figured it would be a fun one to put out there!