DnsServer icon indicating copy to clipboard operation
DnsServer copied to clipboard

Advanced Blocking - TXT file with a collection of URLs not working

Open dannykorpan opened this issue 1 year ago • 10 comments

Hi,

if I define a URL to a TXT blocking list which includes a collection of blocking lists, blocking is not working e.g. with this list https://v.firebog.net/hosts/lists.php. But in Settings -> Blocking -> Allow/Block List URLs it's working.

Kind Regards, Danny

dannykorpan avatar Apr 04 '23 09:04 dannykorpan

Thanks for the post. From what I understand, you configured a URL which returns a list of block list URLs? In that case its not going to work. The DNS Server is expecting a URL that returns list of domain names to block.

ShreyasZare avatar Apr 04 '23 09:04 ShreyasZare

That's correct. But within the Settings -> Blocking are it's working. Otherweise it's a suggestion for improvement.

dannykorpan avatar Apr 04 '23 10:04 dannykorpan

You can just copy those URLs and paste them in the settings directly. How will this feature help since its not like you need to change the block list URLs frequently?

ShreyasZare avatar Apr 04 '23 10:04 ShreyasZare

The URLs in the list will change frequently.

dannykorpan avatar Apr 04 '23 11:04 dannykorpan

I just want to pipe in and say consistency is a good idea too, either both work by parsing URL's for domains, or both parse domains only, having an inconsistent approach is only going to confuse people, resulting in more issues being logged.

PonchoPowers avatar Apr 04 '23 11:04 PonchoPowers

Like what @BonnieSoftware said about inconsistency being one issue, the other issue is that it can cause cyclic dependency like a list of URLs where one of the URL returns a list of URLs.

For such specific requirements, its best that you write a small bash script that uses curl to call the HTTP API and update the block list URLs. You can then run this script with cron and it will keep it updated automatically.

ShreyasZare avatar Apr 05 '23 05:04 ShreyasZare

Thank you for the tip, I think there is still room for improvement. For a URL where one of the URL returns a list of URLs could be an acceptable restriction.

dannykorpan avatar Apr 07 '23 07:04 dannykorpan

Thank you for the tip, I think there is still room for improvement. For a URL where one of the URL returns a list of URLs could be an acceptable restriction.

This is a very specific requirement which is not commonly needed and so is not justifying having a full feature support. Give a try with bash script, it will be quite easy to get it to work.

ShreyasZare avatar Apr 07 '23 07:04 ShreyasZare

A bash script is totally fine for me, but possibly not for others. If you want a sustainable product with included blocking feature, it's a must have function.

dannykorpan avatar Apr 07 '23 08:04 dannykorpan

Ok so lets keep this idea open for a while which will allow more time to think on it.

ShreyasZare avatar Apr 07 '23 08:04 ShreyasZare