AdguardTeam / FiltersRegistry

Known filters subscriptions transformed for better compatibility with AdGuard
GNU Lesser General Public License v3.0
237 stars 54 forks source link

Add a new group of filters ("hosts filters") #68

Closed ameshkov closed 5 months ago

ameshkov commented 6 years ago

There are quite a few domain-level filters we are ignoring because they don't use the "adblock" syntax: https://github.com/AdguardTeam/FiltersRegistry/issues/42

Examples:

Instead of ignoring them we could do the following:

  1. Mark them with a special tag (hosts)
  2. Convert them into the adblock syntax automatically

We will need to enhance filters-compiler so that it was able to do the conversion.

We will then be able to list these filters in the "privacy subscriptions" of the iOS app, and in the DNS filters in the Android app.

ameshkov commented 6 years ago

@lancelot-moon the filters you requested may land here after all:)

lancelot-moon commented 6 years ago

I start to think you're like a wishing machine. Thanks for listening to users' wishes or ideas. And sorry if bothering you.

I don't know how you will design the subscriptions of AG for Android v3. As a user, I wish AG for Android v3 will allow to separately subscribe filters for HTTPS filtering and for DNS filtering by URL.

I mean 2 zones of subscriptions. For HTTP(S) filtering: (supported formats: basic & advanced adblock rule syntax) AdGuard Base filter AdGuard Mobile Ads filter Piperun's iplogger filter ...etc.

For DNS filtering when enabling DNS setting and allow DNS requests blocking: (supported formats: domains, hosts file, basic adblock rule syntax and even ip) AdGuard SDN filter https://1hos.cf/mini/hosts.txt CoinBlockerLists ...etc.

Of course, if AdGuard will put some good filters in the known list, it's good and thoughtful.

Thanks a lot!

lancelot-moon commented 5 years ago

@ameshkov https://github.com/collinbarrett/FilterLists/issues/539 Badmojr just updated his 1hosts.cf. Complete list = addon + mini list He added graph.facebook.com and some domains which may break pages in the complete list.

I think it's better to only use the mini list. Mini list: The mini list is suitable to most users. The filter developer didn't own http://1hosts.cf/ any more.

New URL: hosts file: https://1hos.cf/mini/hosts.txt

Only domains format: https://1hos.cf/mini/domains.txt

Thanks.

lancelot-moon commented 4 years ago

1Hosts website changed its domain name but its domain is frequently down. http://1hosts.cf/ -> https://1hos.cf/

Maybe better to use his GitHub link: https://github.com/badmojr/ https://forum.xda-developers.com/android/general/badmojr-one-host-file-to-block-t3713360

There are more incorrect blocking in Pro and Complete lists. Suggest to only use the link of 1Hosts (mini) from GitHub. https://github.com/badmojr/1Hosts/tree/master/mini

adblock format: https://raw.githubusercontent.com/badmojr/1Hosts/master/mini/adblock.txt

hosts file format: https://raw.githubusercontent.com/badmojr/1Hosts/master/mini/hosts.txt

lancelot-moon commented 4 years ago

https://github.com/AdguardTeam/AdGuardHome/issues/1357 Chinese ad domains list: https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt

ameshkov commented 4 years ago

Yeah, with how it goes we will soon have to finally implement this task.

I'd also like to split AdGuard SDN filter list into smaller parts (ads, privacy, etc, etc).

balupton commented 3 years ago

These dotfiles https://github.com/bevry/dotfiles have a select-hosts command to make selecting and apply hosts files easy.

Even supports setting an ENV variables for NoFap accountability.