How To Generate A Single Use Download Link

Single use download



Brief


This script was written to be a very easy way for non-programmers to be able to create a secure way to share a single file. It is ideal for bands looking to give a single song to a single person, and invalidating the link once the song has been downloaded. However, it will work for any type of file.

Description


This script allows you to generate a unique link to download a file. This file will only be allowed to be downloaded one time. This link will also have also have an expiration date set on it.

For instance, if you wanted to sell a song for your band. You sold the song on your website for $1, you could use this script to allow that person to download your song only one time. It would only give them a limited number of hours/days/weeks/years to claim their download.

You can also mask the name of the file being downloaded, for further protection. For example, if your song was called "greatsong.zip", you could set the download link as "Band_Awesome-Awesome_Song.zip" (it is not a good idea to leave spaces in URL titles)

Update


On January 11, 2018 a multi-file feature branch was merged with the single file. It is now possible to download multiple files at once.

Example



Git the code





If you have problems using the script leave a comment i will be happy to help you

Post a Comment

2 Comments

  1. Points are amassed on the level of wagering so you may be collecting factors whatever the end result. Got a question to ask about taking part in} online on line casino video games for free? If so, you might properly discover the answer you want in the FAQ part below. If you don’t discover the answer you’re looking for, please feel free to contact us. Can you get a royal flush and beat the machine to win this game’s jackpot? Before you play, bear in mind to study the completely different hands 카지노사이트 and their rankings.

    ReplyDelete
  2. Tools.Indoor and out of doors hand tools are typically produced via the steel fabrication processes of slicing, stamping and casting. Examples range from scissors and X-ACTO® knives to hammers, saws and bush trimmers. Casting.One vacuum cleaners of the oldest forms of steel fabrication involves casting, the place molten steel is poured into a mould and is left to solidify into a particular form. As one of the most versatile methods of steel fabrication, casting is right for a wide range|a variety} of complicated shape-making. The commonest metals employed on this application include steel, iron, gold, copper, silver, and magnesium.

    ReplyDelete
Emoji
(y)
:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
x-)
(k)