• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HTML Programming

danklumpp

Senior member
I am currently constructing a website for selling my website templates on. I plan to create a temporary page when someone buys a template. However, I want to have a way of only allowing a file download once, so that not just anyone can get the internet address from the buyer and download the template (for free).

So, my question is, is there any way of setting a website page up so that you can only download a file once?
 
I know I could do it with .NET, first thing that came to mind....

Keep the files in a permanent location that's not available online. In the code that builds the page which shows them the link to download, generate a random filename. Use that filename to copy the file from it's perm location to the temp/online one with that filename. Also use it to build the link.

Have a batch process running that deletes the files in the temp directory that are older than (5?) minutes.
 
If you put in an authentication scheme where they have to register and log in before they can download the file, you can keep track of which "accounts" have downloaded a given file and only allow the download if they have not downloaded that file previously. You'd have to make it difficult to register yourself more than once though... perhaps requiring a valid non-yahoo/hotmail/gmail account or something, though that still leaves a lot of room for them to create extra accounts for themselves... but it would be a real pain for them to do that over and over again to keep downloading the file.

 
bad idea
people who paid should be able to download the template more than once. what if they lose it somehow?
 
If you're allowing the buyer to download it, why are you worried about other people being able to download it from his link? I mean, if he wanted to supply it, all he'd have to do is send the downloaded RAR...
 
Make users log in to download stuff. Allow thyem unlimited access to anything they purchased once they've logged in.
 
Back
Top