adionditsak / blacklist-check-unix-linux-utility

Blacklist check UNIX/Linux utility. I was just a bit tired of web interfaces.
MIT License
109 stars 49 forks source link

How to check a list of IPs against the blacklist? #10

Closed SunnyVirk007 closed 2 years ago

SunnyVirk007 commented 2 years ago

How to check a list of IPs against the blacklist?

PS: Sorry, I know it's not an issue but a query, I didn't know where else to place this.

adionditsak commented 2 years ago

Not really relevant for this repository, but you can do it in many ways in the shell, with a simple one below.

Let's say you have a file called ips.txt with a list of IPs.

while IFS= read -r LINE; do
    ./bl "$LINE"
done < ips.txt

This would run the command with the input from each line which would be the IP.

Closing this issue.