adblock-lean icon indicating copy to clipboard operation
adblock-lean copied to clipboard

Additional header elements now detected as Rogue Element

Open newash opened this issue 2 months ago • 4 comments

I want to use a blocklist, not specifically created for Adblock Lean: https://filters.hufilter.hu/hufilter-dns.txt (from the https://hufilter.hu/filters collections).

The structure of the list looks compatible, but when adding it to the "blocklist_urls", I see the following error:

Warning: Rogue element '! checksum: cemjvsd3huw7kg9ati7y4q' identified in blocklist file from: https://filters.hufilter.hu/hufilter-dns.txt.

Error: Processing job (PID 16791) for list 'https://filters.hufilter.hu/hufilter-dns.txt' returned error code '3'.
Skipping file and continuing.

Yes, the file starts with a checksum line in the header, that is not in the example raw-format list. Would it be possible to just ignore lines like this? Or is there a specific reason for aborting the import for such files?

Thanks in advance.

newash avatar Sep 22 '25 10:09 newash

Ah, I can see that the header comments start with a different character ( ! instead of # ).

I'm a bit confused about these different formats, so if you say it's something you don't plan to support, you can close this ticket.

newash avatar Sep 22 '25 11:09 newash

the header comments start with a different character ( ! instead of # )

Indeed. This is a different format and not typical for DNS lists. I suspect that list maintainers made a mistake and I would suggest to contact them.

Regardless, we could consider adding support for hosts-format lists just so people have more options. We could convert such lists into raw domains format and then load them as usual. What do you say @lynxthecat ?

friendly-bits avatar Sep 22 '25 13:09 friendly-bits

Thanks for the help, lads. Also over there. As far as I'm concerned, I'm happy now with their "pihole" file as raw format list.

newash avatar Sep 22 '25 20:09 newash

Regardless, we could consider adding support for hosts-format lists just so people have more options. We could convert such lists into raw domains format and then load them as usual. What do you say @lynxthecat ?

Sorry for my late response. A downside to this is not readily apparent to me.

lynxthecat avatar Oct 01 '25 10:10 lynxthecat