Looking for abusive clients in your web server logs

Here’s a quick tip on how to find IPs that may be hammering on your web server:


cat access.log |cut -d ‘ ‘ -f 2 |sort|uniq -c | sort -nk 1

Run that against your Apache access log and you’ll find out hits/IP address. Just check to be sure they aren’t Google before you block them!


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *