Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use #1

Open
islam2hamy opened this issue May 15, 2023 · 8 comments
Open

how to use #1

islam2hamy opened this issue May 15, 2023 · 8 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@islam2hamy
Copy link

any document about how to use ?

@SkewedZeppelin
Copy link
Member

This is still actively in my todo list from last time you asked. I'll get to it soonish.

@SkewedZeppelin SkewedZeppelin added documentation Improvements or additions to documentation enhancement New feature or request labels May 15, 2023
@SkewedZeppelin
Copy link
Member

java -jar simple_hosts_merger.jar allowlist.txt blocklists.txt hosts cache;

@islam2hamy
Copy link
Author

it works , thank you .

@hexahigh
Copy link

I might be stupid but what do each of the inputs mean? What are the hosts and cache arguments?

@SkewedZeppelin
Copy link
Member

SkewedZeppelin commented Nov 10, 2023

@hexahigh

  • allowlist.txt is a list of domains to exclude
  • blocklists.txt is one URL per line of a blocklist, can be plain domains or HOSTS format
  • hosts is the actual output/generated file
  • cache just needs to be an empty folder where it'll cache downloaded lists for future reuse

you can generate the allowlist by catting all the files here: https://github.com/divestedcg/dnsrm

@hexahigh
Copy link

Can i specify more then one blocklist at a time using wildcards?

@SkewedZeppelin
Copy link
Member

SkewedZeppelin commented Nov 10, 2023

@hexahigh
it cannot read local blocklists

blocklists.txt must be one url per line as example here: https://github.com/divestedcg/Simple_Hosts_Merger/blob/master/blocklists.txt

each line must be in the format: URL,License;

@hexahigh
Copy link

Alright, ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Development

No branches or pull requests

3 participants