put a total for the bl
This commit is contained in:
parent
40312fd5e9
commit
14e7520169
3
bl.cgi
3
bl.cgi
|
@ -11,7 +11,7 @@ Q=$(echo "$QUERY_STRING" | sed -n 's/^.*q=\([^&]*\).*$/\1/p' | sed "s/%20/ /g; s
|
||||||
if [[ $Q ]]
|
if [[ $Q ]]
|
||||||
then
|
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
|
else
|
||||||
|
@ -28,6 +28,7 @@ cat <<EOF
|
||||||
# consider it listed
|
# consider it listed
|
||||||
#
|
#
|
||||||
EOF
|
EOF
|
||||||
|
echo "# total listed ips: "$(wc -l bl.txt lists/* | tail -n 1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue