No announcement yet.

How to Prevent cPanel Users from Creating Certain Domains

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Prevent cPanel Users from Creating Certain Domains


    cPanel & WHM allows you to deny cPanel users the ability to create certain domains. This feature is useful, for example, to deny cPanel users the ability to park a well-known domain (such as on top of a domain.

    For more information about the domains that cPanel users can create, read our Aliases and Addon Domains documentation.

    Add to the list of user-denied domains

    To add to the list of domains that WHM denies to users, perform the following steps:

    1.From the command line, run the cat /usr/local/cpanel/etc/commondomains command to view the default list of domains that WHM does not allow users to create.

    If the file contains a large number of entries, run the grep 'domain' /usr/local/cpanel/etc/commondomains command to determine if the domain domain exists in the list.

    Warning:Do not edit this file directly. System updates will overwrite any changes to this file. Instead, follow the next step to create a new file.

    2.With a text editor, add the domains that you wish for WHM not to create to the /var/cpanel/commondomains file.

    Add each domain on a separate line, and do not prepend or append a dot to each domain name. For example:

    Only add domain names to this file (for example, When you list a domain name, WHM will automatically prevent the creation of subdomains for that domain. For example, if you list, users also cannot create

    3.In the Domains section of WHM's Tweak Settings interface (Home >> Server Configuration >> Tweak Settings), set the Prevent cPanel users from creating specific domains setting to On.