ErichTheWebGuy
Programmer
Ok, a small amount of background first. I want to restrict users from downloading certain files until they have paid for them. I do not want the same password to be used for each purchase, as would be with the conventional scheme. What I want to do is modify the .htaccess file in real-time to unlock a directory then lock it after the file has been downloaded. Or, I was thinking about passing a 401 header with the authentication information direct to Apache from my CGI script, so the user never sees the password. If I could do this, I wouldn't mind keeping the same password. Another possibility is to re-write the password file each time a file is downloaded with a randomly generated password for each directory... Any ideas? I really like the idea of passing the 401 header but am unsure on implementation... Oh and I do NOT have physical access to the server, but do have my own .htaccess and .htpasswd files. Also, I will use Perl to do this. Thanks in advance!
Erich
Erich