|
|||
|
I need help developing password protected directories!
I am trying to sell downloadable goods and need some directories to be password protected. I know I can use cPanel to password protect some directories, however, I was wondering if it was possible to have a script that would create a username and/or password that would be valid for a certain time and would expire afterward so it wouldn't be possible for someone to pass off the username and/or password. Please help.
|
|
|||
|
Here is how you could do it as well...
1. Set up a cron job to run nightly 2. When you want to add a new password protected directory use either the cpanel plugin to create a password protected directory OR use php curl and create a custom app that adds a password protected directory in cpanel. 3. Then have the nightly cron job remove the password protected directory via the exact same fashion that it was originally added via step #2. |
|
|||
|
As verdon mentioned, many shopping carts include the ability to sell "downloaded goods" that would address your needs. In lieu of that, http://www.locked-area.com/ has some great scripts for managing restricted access to directories.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|