The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there an elegant way to do this?

Discussion in 'General Discussion' started by longtail, Apr 14, 2007.

  1. longtail

    longtail Member

    Joined:
    Nov 12, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to protect an additional common directory based on the status of the user in whm???

    I'd like to place my video DRM license files in a series of protected directories (shared by all users) and give my active hosting clients access to the directory with their username and password.

    Of course if their hosting account is suspended etc. they would no longer have access to the directory.

    Any suggestions?
     
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    You are planning to store data in a single directory or like each directory for each user?
     
  3. longtail

    longtail Member

    Joined:
    Nov 12, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Single Directory or Directories

    It's a shared directory or directories where the license file links are stored. Each hosting user would ue their cpanel username and password to access the shared location based upon their hosting status.

    If their hosting account was active their U and P would give them access.

    If their hosting account was suspended they would not be able to access the directory.

    Right now I'm using www.amember.com to manage this part of my business in addition to whm/cpanel/whmap.

    Id like to get everything under one roof.

    Active hosting account=access to video licenses

    with a single U and P

    James
     
  4. longtail

    longtail Member

    Joined:
    Nov 12, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Is this possible at all??

    With no real replies, I'm guessing this can't be done?? Anyone
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    No, it can actually be done fairly easily utilizing a combination of wildcard DNS,
    htaccess protections, account to be shared, and http.conf alias redirects.

    The issue is more of a case of telling you how to do it in a forum post
    which would be a whole lot of typing to try to explain.

    Actually doing it would probably take 2 minutes.

    Trying to explain it, probably 45 minutes of typing. :D
     

Share This Page