„update_blocklist.sh“ ändern
This commit is contained in:
parent
12114dd705
commit
cf862c5d06
1 changed files with 9 additions and 9 deletions
|
@ -257,16 +257,16 @@ while read BLOCKED_IP ; do
|
||||||
# is not in the database
|
# is not in the database
|
||||||
request_GeoIP_result="empty"
|
request_GeoIP_result="empty"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$useGeoIP" = blockonly ] && echo "${countries[@]}" | grep -qiv "$request_GeoIP_result" ; then
|
if [ "$useGeoIP" = blockonly ] && echo "${countries[@]}" | grep -qiv "$request_GeoIP_result" ; then
|
||||||
let skipByGeoIP=$skipByGeoIP+1
|
let skipByGeoIP=$skipByGeoIP+1
|
||||||
[ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result"
|
[ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result"
|
||||||
continue
|
continue
|
||||||
elif [ "$useGeoIP" = blockother ] && echo "${countries[@]}" | grep -qi "$request_GeoIP_result" ; then
|
elif [ "$useGeoIP" = blockother ] && echo "${countries[@]}" | grep -qi "$request_GeoIP_result" ; then
|
||||||
let skipByGeoIP=$skipByGeoIP+1
|
let skipByGeoIP=$skipByGeoIP+1
|
||||||
[ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result"
|
[ "$LOGLEVEL" -eq 2 ] && echo "continue - $BLOCKED_IP - country: $request_GeoIP_result"
|
||||||
continue
|
continue
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# prepare sql statement
|
# prepare sql statement
|
||||||
|
|
Loading…
Reference in a new issue