|If you don't wish to want any of your users to create a subdomain on your domain, you can use the domain_create_pre.sh to prevent it. This script assumes you don't want them to create "sub.mydomain.com" (anything on mydomain.com).|
Insert the following code into:
Note that this script runs as root.
With root you can also do other things like check the contents of the /etc/virtual/domainowners to ensure that the subdomain he's creating belongs on a domain he owns, etc. (Could also check /usr/local/directadmin/data/users/username/domains.list).
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST