Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ok, a small amount of background fi

Status
Not open for further replies.

ErichTheWebGuy

Programmer
Jul 17, 2002
9
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top