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!

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>