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:

[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”][plain]
cat access.log |cut -d ‘ ‘ -f 2 |sort|uniq -c | sort -nk 1
[/plain]

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![/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]


Posted

in

by

Tags:

Comments

Leave a Reply

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

PHP Code Snippets Powered By : XYZScripts.com