Redirect WHM, Webmail to specific domain instead of IP

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

There are no options available to automatically redirect users who utilize the specific port numbers in the URL. The options under the "Redirection" tab in "WHM >> Tweak Settings" are available to redirect users to the SSL/TLS ports when visiting /cpanel, /webmail, /whm, etc. Here's a post you may find helpful if you are open to a custom firewall workaround (it's for a different purpose but the same concept applies):

SOLVED - Prevent domain.com:2082 logins

Thank you.
 

BastienC

Member
Feb 11, 2016
7
0
1
QC
cPanel Access Level
Root Administrator
I'm not sure I get how this can help me, since myserver.mydomain.com already resolve to the same IP I'm trying to block the access from.

Can I do something like this ?
w.x.y.z|2083|myserver.mydomain.com|2083|tcp
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

It would only apply as a workaround if your accounts resolved to separate IP addresses and accessed cPanel/WHM via their domain name (e.g. domain.tld/cpanel). If it's the same IP address, then there's no other workaround I'm aware of.

Thank you.