All IPs are stored in /usr/local/directadmin/data/admin/ips/IP (where IP is your real IP address, check existing files or newly created IP file for an example of the content) and /usr/local/directadmin/data/admin/ips/ip.list file, so, they can be added easily using a script too.