HostlistCompiler
HostlistCompiler copied to clipboard
A simple tool that compiles hosts blocklists from multiple sources
I've used the commands using NPM to try to install the software and I get the following warnings: ` # npm audit report axios
Hello, please, consider about implement these optimization steps: - remove empty lines; - remove leading and trailing spaces; - sort alphabetically; - remove ||www.example.com rules or replacing them to ||example.com^;...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. Commits 64735d2 v4.1.1 75a657d Fix potential ReDoS (#37) See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this...
 https://github.com/AdguardTeam/HostlistCompiler/issues/25
"npm config set strict-ssl false " or "process.env.NODE_TLS_REJECT_UNAUTHORIZED='0' "
``` lines.push(`! Last modified: ${(new Date()).toISOString()}`); ``` Should be changed to ``` lines.push(`! Last modified: ${(new Date()).toLocaleString()}`); ``` Timezone is lost when converting date using toISOString(), resulting in a time...
1) What will happen if a path or URL of the source is not available? How long will hostlist -compiler wait for it? 2) Can I edit the waiting time...
Validator removes such rules, although when added to user rules they work.: ``` ||asia^$denyallow=amzn.asia ||bar^$denyallow=fap.bar ||beauty^$denyallow=homelab.beauty|nic.beauty|vipbj.beauty ``` By the way, the validator considers such rules valid: ``` ||*.asia^$denyallow=amzn.asia ||*.bar^$denyallow=fap.bar ||*.beauty^$denyallow=homelab.beauty|nic.beauty|vipbj.beauty...
When compiling, the validator removes rules with non-latin symbols. For instance: ``` ||*.рф^ ||*.ಭಾರತ^ ||*.慈善^ ``` Example: https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/spam-tlds.txt > validating > https://github.com/AdguardTeam/HostlistsRegistry/blob/main/filters/security/filter_56_TheWorldsMostAbusedTLDs/filter.txt
Sample rules from AdGuard DNS filter: ``` .3.n.2.1.l50.js ||113.17.188.*.js .n.2.1.js^ ``` Original issue: https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/1224 https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/1243