Skip to content

hionay/blgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blgrep

Search for a domain across all source lists used by Hagezi's DNS blocklists.

Why?

I use Hagezi Multi Pro on my Pi-hole/AdGuard Home setup, and I'm very happy with it.

At work, we build interactive product finders, surveys, and quizzes (Poltio). Our widgets sometimes get flagged as "annoying" by upstream blocklists that Hagezi aggregates from. When that happens, we reach out to the list maintainers to explain that we don't track users or store any activity without consent, and ask them to remove the entry.

As the number of upstream sources grows, manually finding which list is blocking us became tedious.

So I wrote this tool to grep all of them at once.

Usage

go install github.com/hionay/blgrep@latest

blgrep poltio

The tool fetches Hagezi's sources.md at runtime, downloads every listed source concurrently, and prints any lines matching your query.

Example output

Fetching source list from hagezi/dns-blocklists...
Found 247 source URLs. Searching for "poltio"...

LIST: https://easylist-downloads.adblockplus.org/easyprivacy.txt
  LINE 4821: ||poltio.com^$third-party

Found 1 match(es).

About

Blocklist Searcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages