StevenBlack / hosts

πŸ”’ Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
MIT License
26.68k stars 2.22k forks source link

Feature Request: dnscrypt-proxy support #1830

Closed lsm5 closed 2 years ago

lsm5 commented 2 years ago

AFAICT, dnscrypt-proxy can't use the hosts file as-is so I end up running a few seds on the hosts file. Would you be open to adding a version readily consumable by dnscrypt-proxy?

welcome[bot] commented 2 years ago

Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!

StevenBlack commented 2 years ago

Hi Lokesh @lsm5 thank you for this suggestion.

Can you share your sed commands so I can assess? What format does dnscrypt-proxy require? Is it domain only, with a terminating period? One per line or is space-delimited okay too?

lsm5 commented 2 years ago

@StevenBlack thanks for the quick response and really appreciate your work.. And my bad, I wasn't aware dnscrypt already has a tool for this https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists .

I guess that tool is good enough for me and this issue can be closed. But I'll leave it open in case you wanna add it here, maybe in the form of a docs update.

lsm5 commented 2 years ago

I'll be happy to send a PR if it's worth adding to the hosts repo.

StevenBlack commented 2 years ago

Lokesh @lsm5 I'm always happy to improve our docs.

If you make improvements to docs, they should go in the readme_template. This repo has 17 readme files, including the root readme, all of which are generated from the template.

lsm5 commented 2 years ago

@StevenBlack ack, thanks a lot! I'll go through it and send something maybe within the next couple of days.

dnmTX commented 2 years ago

Steve @StevenBlack this is what they use in general:

 ######################################################
 #        Pattern-based blocking (blocklists)        #
 ######################################################

 ## Blocklists are made of one pattern per line. Example of valid patterns:
 ##
 ##   example.com
 ##   =example.com
 ##   *sex*
 ##   ads.*
 ##   ads*.example.*
 ##   ads*.example[0-9]*.com
 ##
 ## Example blocklist files can be found at https://download.dnscrypt.info/blocklists/
 ## A script to build blocklists from public feeds can be found in the
 ## `utils/generate-domains-blocklists` directory of the dnscrypt-proxy source code.

Looks like the very basic,without any wildcard blocking is just plain domains,no zeroes in the front πŸ‘