plus de detail dans le mail

This commit is contained in:
Valentin CZERYBA 2023-02-07 22:33:52 +01:00
parent 9041206f14
commit b7addc2aee

View File

@ -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}