plus de detail dans le mail
This commit is contained in:
parent
9041206f14
commit
b7addc2aee
@ -52,6 +52,8 @@ do
|
||||
echo ${i} >> ${MAIL}
|
||||
curl http://ipinfo.io/${i} >> ${MAIL}
|
||||
echo "" >> ${MAIL}
|
||||
tail -n 50 $log_access | grep ${i} | awk -F "|" '{ if($2 == "400" || $2 == "404") print $0}' >> ${MAIL}
|
||||
echo "" >> ${MAIL}
|
||||
echo ${i} >> ${BLACKLIST}
|
||||
done
|
||||
echo "IP dejà blacklisté : " >> ${MAIL}
|
||||
|
Loading…
x
Reference in New Issue
Block a user