Quick and Dirty chrome Extenstion and API for PiHole.
Code is messy and proof of concept. I'll update if there is interest.
User_Alias WWW_USER = www-data
Cmnd_Alias WWW_COMMANDS = /usr/local/bin/gravity.sh, /usr/local/bin/whitelist.sh, /usr/local/bin/blacklist.sh
WWW_USER ALL = (ALL) NOPASSWD: WWW_COMMANDS
This allows webserver user to execute the white/black/gravity scripts without being root. I couldn't think of an 'easier' way.
Now you can add/remove/edit your whitelist and blacklist.