Expand whitelist/blacklist options to accept URL's and File-Locations
cbuijs opened this issue · comments
Would be nice if the whitelist
and blacklist
options accepts URL's and file-locations and maybe obsolete the list
option?
Examples:
blacklist https://raw.githubusercontent.com/cbuijs/accomplist/master/deugniets/plain.black.domain.list
whitelist https://raw.githubusercontent.com/cbuijs/accomplist/master/deugniets/plain.white.domain.list
blacklist-regex /etc/coredns/my-sweet-regex.list
blacklist doubleclick.net
whitelist /etc/coredns/banks.list
etc...
I really like this idea. Especially because I was planning the support for local files anyways (#17). I will look into it. But it might take some time.
Alright after this Huge delay I finally got to implementing (most of) it. The only thing missing is Lacking support for regex rules in lists.
The features can be found in version 0.2.0 which is currently a prerelease because I want to test it a bit in depth before completeley releasing it.
To build it just Configure the plugins.cfg
of coredns with the usual command (ignore the development part). Then run make
and next replace the github.com/c-mueller/ads v0.1.4
line in the go.mod
file with github.com/c-mueller/ads v0.2.0
and run make again, to get this version.
Thanks for your issue :)