APACHE Script monitor hits/day
# Script per conteggiare le richieste di un singolo ip all’interno del access log #+ e monitorare attivita’ di richieste sospette. #check utente ROOT ROOT_UID=0 #codice errore se nn root E_NONROOT=67 if [ “$UID” -ne “$ROOT_UID” ] then echo “Devi essere root….” exit $E_NONROOT fi if [ ! “$(echo $1 | grep ‘[0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}’)” ] then […]
23/08/2006 Apache, Bash, Linux