How can I get this done? When someone places an order and the payment is processed through PayPal, the buyer should be taken to Download the stuff he/she has ordered. I would further want to limit that buyer to download the product just once or twice (at most) and then it shouldn't be available to that user. Currently I send an email with a link to download which gives the idea to the buyers where is the file located and that isn't safe. Is there a script or something that can protect a .php or .html page with a password? What are my options?
You could try storing information of every download in a database. That would you could prevent someone from downloading it twice! I don't think protecting the php file itself would be a good solution!
Store files underneath webroot Create a database for downloads that recognizes your clients usernames read the rest of this post I got nothing, overstretched with a numbered list really, thought it would better than it is What was that, anyway, store files underneath your webroot, they will not be accessible via the web, but php ( or whatever ) can still read and write them, you need to have a database that will recognize the usernames of your clients, you need to implement a unique link somehow to your files, then you need to output the file with readfile(), count the bytes read, if the user cancels or doesn't get the whole download you'll know, update your database accordingly, thats it I think ......
Dreamweaver has some password protect php page tools. Does require a database connection and usernames and passwords but is pretty easy to set up.