how to stop access to /cpanel
hello
i would like to know how to stop users from accessing cpanel login from /cpanel
i want it to redirect user back to the main site
-
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 restart0 -
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.
Comments
2 comments