put a total for the bl

This commit is contained in:
vulpine 2020-11-04 11:58:32 -05:00
parent 40312fd5e9
commit 14e7520169
1 changed files with 2 additions and 1 deletions

3
bl.cgi
View File

@ -11,7 +11,7 @@ Q=$(echo "$QUERY_STRING" | sed -n 's/^.*q=\([^&]*\).*$/\1/p' | sed "s/%20/ /g; s
if [[ $Q ]]
then
grep "$Q" bl.txt lists/* || echo "0 0 Not found in blacklist"
(grep "$Q" bl.txt lists/* || echo "# 0 Not found in blacklist") | head -n 1
else
@ -28,6 +28,7 @@ cat <<EOF
# consider it listed
#
EOF
echo "# total listed ips: "$(wc -l bl.txt lists/* | tail -n 1)
fi