Skip to main content

how to stop access to /cpanel

Comments

2 comments

  • Ekushey
    To remove /cpanel URLs, remove/change the the following line located on the /usr/local/apache/conf/httpd.conf file: ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    Then run the following commands for the changes to take effect: /usr/local/cpanel/bin/apache_conf_distiller --update /scripts/rebuildhttpdconf /etc/init.d/httpd restart
    0
  • cPanelMichael
    Hello :) Note that if prefer an alternate redirect, you may need to develop your own custom redirect script similar to to the existing one referenced in the post above. Thank you.
    0

Please sign in to leave a comment.