I need help developing password protected directories!

irrumate

Registered
Jan 4, 2008
1
0
51
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.
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
Texas
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.