A |
artichoke |
Allow every list to be a script.
Whenever DirectAdmin does a linear scan of a file that contains one entry per line, check to see if the file is executable and its first two characters are “#!”. If so, then instead of reading the list from the file, run the file as a program and use its output.
This will provide a lot of flexibility. For example,
/usr/local/directadmin/data/templates/forbidden_domains.list
could consult an outside database or do a DNS lookup.