I read in the blog that this site uses Amazon Cloudfront. I am also interested in using something similar.
Q. 1: My site detects when a payment has finished, and I want only the people who paid to be able to download a file on a remote server (Such as Amazon). Is this possible? (I don't want to use a link that someone can give his friends to download the purchases too.)
I understand that I cannot use PHP's fopen() functions, because this will end up using both Server A and server B's bandwidth resources! The whole point of me putting the files on a remote server is to reduce bandwidth usage on my main server.
Q. 2: If this is not possible, the only other method I can think of is to keep the files on the same server with the payment validation, and put the files in my unreadable folder (outside of the public web root). Then, I would use readfile() to let the people who purchased access those files. Is this a good method?
Thank you for helping. (if you need more information, let me know)