MarkDalton

Active Member
Mar 16, 2013
38
1
8
cPanel Access Level
Root Administrator
Hi,

I'm not quite sure how this is being done but have had a couple of people attempt to buy a hosting package with a subdomain of our domain.

Example: We own domain.com, two people have attempted to sign up for a package and register subdomain.domain.com.

Now this obviously fails as they don't pay for the package and we cancel the order, but how do I prevent them from doing it in the first place.

I've tried to recreate the issue, but can't see how they are doing it.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
Do you use WHMCS ?

In WHMCS there is a setting in General Settings > Ordering: Block Existing Domains
Tick this box to prevent orders being placed for domains already in your system

That might help, there is also a set of switches in WHM > Tweak Settings > Domains that may help you, especially the Allow users to park subdomains of the server’s hostname and Allow resellers to create accounts with subdomains of the server’s hostname.

Go through these settings carefully, if in doubt, leave them at the cPanel recommended default setting.

Tweak Settings - Version 68 Documentation - cPanel Documentation

This wont stop the order but should stop them setting up the subdomain if they do pay
 
Last edited:
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,220
463
Hello,

The previous post is correct. Additionally, check to verify the following option is turned off under the "Domains" tab in "WHM >> Tweak Settings":

Allow WHM users to create subdomains across accounts

Thank you.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
The only way I have been able to replicate this behaviour in WHMCS is if I select the I will use my existing domain and update my nameservers option and enter the subdomain there.

I haven't found any way of preventing this, perhaps the WHMCS forums would be a better place to discuss it ?