blocklists icon indicating copy to clipboard operation
blocklists copied to clipboard

How should I implement wildcards?

Open infinitytec opened this issue 1 year ago • 1 comments

With the release of Pi-hole FTL 5.22, we can now use Adblock Plus-style filters to block subdomains!

Pretty neat, and I intend on implementing this in some way.

Some possible ways this can be done:

  1. Simplify the lists using ABP formats as much as possible. Remove as many subdomains as possible from the lists. This would make lists a lot smaller, which could improve performance. However this may make lists incompatible with blockers other than Pi-hole, uBlock Origin, and Adblock Plus.
  2. Create new lists specifically for wildcards. I would probably only create it for domains that frequently create tons of subdomains. The domain lists would continue as they currently are. A possible problem with this is adoption being slower if people are unaware of these new files.
  3. Add the wildcards to the lists. This would offer the best of both worlds at the expense of slightly larger lists and possibly throwing some errors in some blockers. I know that Pi-hole will typically just throw out malformed lines, but I don't know about any other blockers, which could cause problems.

I'm leaning towards the second option, as it offers the greatest resiliency against breakage. I'd love to get some feedback from users as to how this should be handled.

infinitytec avatar Mar 31 '23 16:03 infinitytec