Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    Default 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.

  2. #2
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    you probably use a proper shopping cart with this feature. It will be a bit of setup, but you'll get something that functions and offers a lot of other features (like reporting). I would advise zen-cart

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    91

    Default

    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.

  4. #4
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Password protected directories
    By griz in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 02-02-2011, 03:54 AM
  2. Password Protected Directories
    By DonC17703 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-08-2007, 04:45 PM
  3. Password Protected Directories
    By Ben 2k6 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-20-2006, 10:45 AM
  4. password protected directories
    By theMezz in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-02-2004, 01:38 AM
  5. Password protected directories
    By jasonl813 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-22-2003, 05:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube