There are several solutions to this problem. One is to write a cookie to the computer once the user downloads the file the first time, you can then check for the existence of this cookie if the user tries to download it a second time. The problems with this solution are that the user may not have cookies enabled. The users can also delete their cookies if they want to.
Another solution would be to have your users log into your web site. You would then store their login details in a database along with what they are allowed to download and whether they have downloaded it before.
You could also provide them with a special code when they purchase the file, then they are only allowed to download the file if they type in a correct code. Once they have done this you can remove the code from you list of allowable codes so that if they type it in a second time they will not be allowed to download the file.
Regards
Owain Williams
|