Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Default cPanel URL login

    Everything I've found on the web says that you should be able to login to cPanel automatically via a URL that looks like this:

    http://DOMAINNAME:2082/login/?user=Y...s=YOURPASSWORD

    However, this is not working for me. I just get the login page with "Login Attempt Failed!" in red text.

    Any ideas on how to fix this? Any alternative url structures? Or perhaps there's some setting in cPanel/WHM that needs to be changed to allow for this?

  2. #2
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Default

    OK let me elaborate.

    We are on a VPS. I spoke with HostGator support and they have the same problem, cannot login by using a URL in the above-mentioned format. However, such a format works just fine on their shared hosting.

    The tech told me there must be some switch to flip somewhere that will allow this to work, but he had no idea where.

    I've been looking around in our WHM, specifically in Security section of Tweak Settings. However, I've yet to find anything that resolves this problem.

    Any ideas?

  3. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Do the links to these demos work for you properly?

    Demo - cPanel Inc.

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Default

    I am having similar issues. Any help would be appreciated.

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Default

    Quote Originally Posted by Infopro View Post
    Do the links to these demos work for you properly?

    Demo - cPanel Inc.
    Yes, these links work just fine for me.

  6. #6
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Default

    Good God, this really should not have been so difficult to resolve. But finally I have, so here's the answer for the benefit of future fellow hair-puller-outters:

    If the URL format mentioned above doesn't work for you, try making a form and posting the required information to the URL instead.

    I could swear that I tried this at one point and it didn't work, but it does work now, so no complaints.

    There's a rather thorough example in PHP here: SampleBrandedLogin < AllDocumentation < TWiki

    The following, however, is my somewhat simplified version, which will work for logging into cPanel (2082) only:

    Code:
    <?php
        $href = 'example.com:2082/login/';
        echo "<form action=\"$href\" method=\"POST\"";
        echo "<input type=\"hidden\" name=\"user\" value=\"$user\"";
        echo "<input type=\"hidden\" name=\"pass\" value=\"$pass\"";
        echo "<input type=\"hidden\" name=\"failurl\" value=\"$href\"";
        echo "<input type=\"hidden\" name=\"login_theme\" value=\"default\"";
        echo "<input type=\"submit\" value=\"Login\"";
    ?>
    Since I already know the user's username & password, no need to ask them for it, I just pass it in variables.

    Hope this helps someone.

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    You might like to check out this demo site for more examples.
    MyBrandedHOST -- Docs

Similar Threads & Tags
Similar threads

  1. What is the url for password protection login
    By vizzo in forum New User Questions
    Replies: 1
    Last Post: 05-24-2010, 01:30 PM
  2. Possible to pass cpanel un/pw in URL (and skip login popup?)
    By electric in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-09-2010, 10:43 AM
  3. url changes on login
    By USGlory in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-02-2007, 02:26 PM
  4. cPanel URL Login
    By JoseAlvarado in forum cPanel Developers
    Replies: 5
    Last Post: 09-16-2007, 04:52 PM
  5. FIX: URL login with Window$
    By yufool in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-25-2004, 01:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube