Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Expand whitelist/blacklist options to accept URL's and File-Locations #20

Open
cbuijs opened this issue Jul 20, 2019 · 3 comments
Open

Comments

@cbuijs
Copy link

cbuijs commented Jul 20, 2019

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...

@c-mueller
Copy link
Owner

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.

@cbuijs
Copy link
Author

cbuijs commented Jul 20, 2019 via email

@c-mueller c-mueller mentioned this issue Sep 13, 2019
c-mueller added a commit that referenced this issue Oct 18, 2019
@c-mueller
Copy link
Owner

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants