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!

Can I link to auto-login WHM and go to "list accounts" page? (with search even better)

Discussion in 'General Discussion' started by Ishware, Mar 19, 2014.

  1. Ishware

    Ishware Well-Known Member

    Nov 7, 2003
    Likes Received:
    Trophy Points:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Okay, so I have determined that on my local machine, which I trust completely, I have set up a bookmark as follows:


    This will log me into WHM, which is brilliant and makes my life so much easier.

    There's one little step, though, that would make life even better: Is there a way to pass in the arguments the destination page I want? For example, I want to auto-login and go to:


    Even BETTER would be to pass along search args like:


    Is there any way at all to construct a URL to get me to either of those steps? Pweeeease? :)

    Alternatively, I'm just playing around with JSON to create accounts from an external script. Is there a way I can create the account via JSON, then construct a URL to log into that account's cPanel automatically? Especially if, again, I can direct to a certain page - I do a couple of standard things (set up abuse@ and postmaster@, for example) that I know I can eventually automate, but it's common for me to use Softaculous to install Wordpress for the site, for example, so a link to click to go to the Wordpress install page in Softaculous as a link after creating a site would be amazing...

    Meanwhile, my massive thanks to cPanel allowing that first URL to get me into WHM. It saves me so much headache every day... :)
  2. robb3369

    robb3369 Well-Known Member

    Mar 1, 2008
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    IMHO, I would NEVER pass a username/password in the URL... Always do a HTTPS post to get your password and other sensitive data inside the secure payload and NOT in the URL... If there are any proxies between you and the server, your root credentials would become known. I'd get a good password safe like Roboform instead...

    As far as standard abuse@ or postmaster@ accounts, are you looking for server wide settings? If so, there are alot of examples from Chirpy for forwarding all postmaster@ and abuse@ email accounts to your server's root email forwarder.

    And, as far as automating Softaculous, they actually have a WHMCS module that allows that at account creation. Also check their website for further information on that. The cPanel blog also has an example of doing it as well:
    Frequently Asked Scripts: “How do I automate XYZ after creating an account?” | cPanel Blog
    cPanel & WHM's SDK
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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