Denying cPanel user’s in creating certain domains

Stop worrying about your server.

cPanel/Plesk Server Management for just $59/mo with Unlimited tickets, Unlimited admin hours, Security audits, 24×7 monitoring and lot more 

cPanel Server Management  $59/mo Click here

Plesk Server Management $59/mo Click here

Denying cPanel user’s in creating certain domains:

There is a function on cPanel named “Prevent cPanel users from creating specific domain” this will be helpful in implementing security features to cPanel server. As there is a chance for parking a known domain to some of the cPanel accounts and create sub domains for the known domain for sending spam emails. Now a days this is happening for more number of servers. Also this can be happen in case of account compromised.

There is a common file in all cPanel servers called commondomains in the location,

/usr/local/cpanel/etc/commondomains

this file will already block the creation of certain domains listed in the file, and this is created by cPanel itself. To see the list of domains in the file you can see the contents using cat command. Example,

[email protected] [~]# cat /usr/local/cpanel/etc/commondomains

google.com
gmail.com
hotmail.com
aol.com
yahoo.com 
excite.com 
cs.com 
juno.com 
mail.com
email.com
address.com
altavista.net
netscape.net
netscape.com
earthlink.net
attracta.com

If you need to add more to the list then create a file,

/var/cpanel/commondomains

Now add the domains that you need to prevent created by cPanel users in a line by line order as seen in the above example.

Once you list a domain it will prevent creation of subdomains for that domain in the list. Also this will only activated after enabling this option from WHM. For that go to,

WHM > Tweak Settings

then turn ON the option ” Prevent cPanel users from creating specific domains

That’s all

If you need our help to fix any issues on your server. Please feel free to contact us, simply email to [email protected]

Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59 

Server Management at just $59

Leave a Reply

Your email address will not be published. Required fields are marked *