CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   One time use passwords for htaccess possible? (http://www.codingforums.com/showthread.php?t=249720)

devonrs 01-24-2012 08:47 PM

One time use passwords for htaccess possible?
 
Hi. I set up a password protected page using .htaccess for download of my band's album and created 1000 unique usernames/passwords and printed them on download cards for inclusion in our LPs so that purchasers of the record can also get a digital download as well. Currently however you can use each login/password as often as you like. Is there any way I can have a script check each code as it's entered and make them invalid after a certain number of uses?

Thanks!
jack

abduraooft 01-25-2012 08:42 AM

Quote:

Is there any way I can have a script check each code as it's entered and make them invalid after a certain number of uses?
Instead of having all the passwords in htaccess file, you could have them in a DB and use "HTTP authentication with PHP". Thus, after each login you may set a flag int he DB. (Check your host and find whether it supports this feature)


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.