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.

Default cpanel login problem,

Discussion in 'General Discussion' started by 5416339, Jan 31, 2011.

  1. 5416339

    5416339 Member

    Joined:
    Jan 22, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    By default i use :

    mysite.com/cpanel can i chnage this some how to something else ?

    mysite.com/somecpanel

    Is this possible ?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    The redirect is part already setup redirections in Apache's configuration file:

    Code:
    ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?securecontrolpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
    ScriptAliasMatch ^/?securecpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
    You could simply use mysite.com/kpanel or mysite.com/controlpanel, both of which should already exist as working redirects.

    Is there a reason you want to use a different name rather than cpanel for the url?

    Thanks.
     
  3. 5416339

    5416339 Member

    Joined:
    Jan 22, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I want to change the name.Just to add additional security and hackers cannot guess or find out where to login
     
  4. jpearl

    jpearl Member

    Joined:
    Oct 28, 2011
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    AZ
    cPanel Access Level:
    Root Administrator
    They can still just get to it by the port number just as easy by putting 2083 or 2087 at the end.
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Actually, the default cPanel port can be changed:

    http://forums.cpanel.net/f5/ask-rename-cpanel-whm-become-newname-226501.html#post933932

    Also, the urls /cpanel, /whm and so on can be changed by revising the ScriptAliasMatch lines noted in that post. The only thing that cannot be changed is the 2087 url, but 2086 could be blocked or redirected to SSL only.

    If WHM > Host Access Control were used to only allow your IPs for the whostmgrd process and deny all other IPs, you'd then lock down WHM from anyone hitting it besides yourself. At that point, you've pretty well made it difficult for attackers to gain access to WHM. Port scans could still get the changed cPanel port, but most script kiddies don't even know about port scanning, so you'd have blocked the lower level attacks.
     
Loading...

Share This Page