At the moment with cpanel, anyone on the web can type
www.domain.com/cpanel
www.domain.com/whm
www.domain.com/webmail
This makes it easier for hackers and snoopers to try and access the backend of the site.
Is there a way to protect a site's cpanel both when cpanel is used on a dedicated as well as shared hosting account, by restrictions in php.ini or .htaccess file so that
- access to cpanel URL is restricted by IP or something similar, or specifying a custom login area.
When cpanel is configured, www.domain.cpanel is moreless a redirect to www.domain.com:2082 (or 2083
but how can this be set so that in any environment including shared accounts, someone without the right IP address cannot see anything when such is typed in?
Either using modrewrite, or other commands in php.ini or .htaccess or simply having a script that can be placed into each user's account so that if they want to prevent access to cpanle, this can be done.
Note that unlike preventing access to folders, for shared account users, they cannot prevent access to cpanel in the same way, because it is is not a folder but a port and cpanel simply redirects one to that port.
This will help make more sites a bit more secure from snoopers
www.domain.com/cpanel
www.domain.com/whm
www.domain.com/webmail
This makes it easier for hackers and snoopers to try and access the backend of the site.
Is there a way to protect a site's cpanel both when cpanel is used on a dedicated as well as shared hosting account, by restrictions in php.ini or .htaccess file so that
- access to cpanel URL is restricted by IP or something similar, or specifying a custom login area.
When cpanel is configured, www.domain.cpanel is moreless a redirect to www.domain.com:2082 (or 2083
Either using modrewrite, or other commands in php.ini or .htaccess or simply having a script that can be placed into each user's account so that if they want to prevent access to cpanle, this can be done.
Note that unlike preventing access to folders, for shared account users, they cannot prevent access to cpanel in the same way, because it is is not a folder but a port and cpanel simply redirects one to that port.
This will help make more sites a bit more secure from snoopers