How to create a digital product download link that can’t be used twice?

Rough idea:

  • create a temporary download file. Use a random file name.
  • create a program that will download the file. The program should delete the temporary download after a click on the download file link by the client
  • send the download page (not the download file) link to the user, with a parameter that is the download file.

You could put some ‘downloaded ok?’ location on the download page, then delete the temp file afterwards.