Page is a not externally linkable
- WebmasterWorld
-- Webmaster General
---- Neat little unix/linux command to list top IP's accessing your site


maximillianos - 1:41 am on Feb 1, 2010 (gmt 0)


Just thought of neat script I'm going to try and put together.

1. Have cron run this say every 15 minutes and dump the output into a file.
2. Have a perl script run to look at the output and run an IP lookup on the top culprits.
3. If there is excessive hits and they are not one of the big dog search bots, issue a IP ban and email myself a notification with the results (so I can confirm it was a bot I wanted blocked).

Wonder if this is going to cause me more head aches than it would solve? Maybe I'll give it a whirl anyway... =)


Thread source:: http://www.webmasterworld.com/webmaster/4071661.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com