cPanel Server Management
For 24×7 cPanel Server Management with Monitoring, Unlimited Tech Support, Disaster Recovery, Security updates and much more Signup today!
How to prevent users from creating certain domains
You can use cPanel & WHM to prevent users from creating certain domains. You can do this using the WHM Tweak Settings option labelled Prevent cPanel users from creating specific domains. For cPanel security purposes, this feature is very useful for admins. if you wish to prevent cPanel users from attempting to park a well-known domain (such as google.com, yahoo.com ) onto his or her own domain.
Your cpanel customers may be using unknown parked or addon domains to send spam emails or malware functions so we have used these options to prevent cPanel users from creating certain domains.
You can add to the list of domains to which WHM applies this feature:
To see which domains WHM already blocks, view the file /usr/local/cpanel/etc/commondomains.
Create the file /var/cpanel/commondomains.
In /var/cpanel/commondomains, list the domains you wish to prevent cPanel users from creating.
1) You must separate domains with a new line.
2) You should only list domain names in /usr/local/cpanel/etc/commondomains (e.g. example.com). Listing a domain name will automatically prevent the creation of subdomains for the specified domain. For example, listing example.com will prevent users from creating sub.example.com. In addition, domains listed in this file should not contain a leading dot.
4) Make sure that on the WHM -> Tweak Settings screen, Prevent cPanel users from creating specific domains is turned On
cPanel Server Management
AssistanZ is a pioneer in offering 24×7 cPanel Server Management Service since 2004. We offer 24×7 cPanel Server Management
cPanel Server Management
cPanel Installation and Setup
cPanel Server Optimization
cPanel Server Migration
cPanel Server Security and Hardering
cPanel Server Monitoring
cPanel Server Hack Recovery
and Much more