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!

How to disable or forbidden site.com/cpanel

Discussion in 'General Discussion' started by Sametto Chan, Oct 31, 2016.

Tags:
  1. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    307
    Likes Received:
    28
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I want to be disable or forbidden to this cPanel URL.

    I'm on shared server ultimate 4G
    Apache
    CloudLinux 6.x

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can't disable the /cpanel redirect without root access to the server. I recommend reaching out to your web hosting provider to see if they can modify the VirtualHost entry for your domain name in the Apache configuration to disable this redirect rule.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Samet Chan likes this.
  3. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    307
    Likes Received:
    28
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    I have access SFTP and FTP.

    Shared server it's from NameCheap.

    I can edit in .htaccess rule forbidden to /cpanel?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The global ScriptAliasMatch entries will override that .htaccess entry. There's a thread here to explain how to modify the behavior if you have root access:

    I want /webmail gone!

    You could reach out to your hosting provider to have them update the VirtualHost entry for the specific domain name.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Samet Chan likes this.
  5. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    307
    Likes Received:
    28
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    I don't have folder conf.
    [​IMG]
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The referenced thread was provided so you could send it to your hosting provider when requesting a change to your specific VirtualHost entry. This is change your hosting provider would have to make.

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

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