What technique(s) do digital download websites use to “hide” or “mask” the direct URL to a file you’re downloading, where the links expire after a while and can’t be used by multiple people to access the same file… I’ve been searching the internet but it doesn’t seem widely discussed (or maybe I’m searching for the wrong things?) even though it’s an extremey common thing when it comes to digital downloads?
For example:
How can you display a download link on a HTML page that allows someone to download a file from your server, in a way where the link expires after 1 download and can’t be reused, or sent to someone else to download the same file? A way where you can generate random-looking URLs upon each download request?
Is this possible in PHP?