Remove access to add domain

Relating to this guide:
http://help.directadmin.com/item.php?id=150

Use this code in the all_pre.sh instead:
Code:
#!/bin/sh
if [ "$command" = "/CMD_DOMAIN" ]; then
      echo "Modifying your domain has been disabled";
      exit 1;
fi
if [ "$command" = "/CMD_ADDITIONAL_DOMAINS" ]; then
      echo "Modifying your domain has been disabled"; 
      exit 1;
fi
if [ "$command" = "/CMD_CHANGE_DOMAIN" ]; then
      echo "Modifying your domain has been disabled"; 
      exit 1;
fi
exit 0;
John
 
Back
Top