Solution:
for f in /var/www/vhosts/*/logs/access_ssl_log; do printf "\n\n=== $f ==="; tail -n 10 "$f" | awk '{print $1}' | sort -u | while read -r ip; do printf "%s\n" "$ip"; whois "$ip" 2>/dev/null | grep -iE '^(country|netname|org-name):'; echo; done; done
Log path could be different on diverse system.
Ubuntu, Debian, Redhat, Centos etc
Apache, nginx
Wordpress, Drupal, Joomla
Neuen Kommentar schreiben