Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Password Protect Account on Creation

Discussion in 'General Discussion' started by MattCNS, Feb 16, 2012.

  1. MattCNS

    MattCNS Registered

    Feb 16, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Is there anyway to get cPanel to password protect an account on creation? I'd like to have a cPanel set up an account, password protect the public_html directory using a .htaccess file (with a random password) and then email the details along with the other log in stuff generated.

  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    There are no native options available with cPanel/WHM that will allow for that configuration. Instead, you would need to use our developer resources to implement a custom script for this. The following document may be of interest to you:

    Postwwwacct Script Hook

    In addition, the following thread on the developers forums includes related information:

    Secure Directories Using XML-API

    Additional development questions can be asked on the developers forum:

    cPanel Developers

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice