AdguardTeam / urlfilter

AdGuard content blocking library in golang
GNU General Public License v3.0
102 stars 21 forks source link

Attempted to add support for "0" hosts files, HostsDeny files, and MinerBlock's list to AdGuard Home #7

Open DandelionSprout opened 4 years ago

DandelionSprout commented 4 years ago

I've never been all that good at coding, and I wasn't even sure which repo that this kind of stuff should be pull-requested to. Essentially, this PR aims to add support for these 3 kinds of lists to various AdGuard tools (Primarily AdGuard Home):

I pondered on adding "-d ") as well for TPL filterlists, but I decided against it because those lists were apparently only intended by Microsoft's design to block third-party requests, making them work the same as $third-party, which also isn't supported by AGH.

I also found the session.go file; and while I'm not entirely sure if it's in active use or not, I saw it was missing a few file formats in its $image and $media definitions. So I figured I could just as well add those too.