My PERL skills are rather limited, so I'm not sure the best way to do this. I'd like to do some GREPS out of an Apache log file to extract IPs that are spamming blogs.
So I need to do something like this
1. open the file.
2. POST for all post requests being done to blog comment files being spammed, wp-comments-post.php and mt-comments.cgi
3. Pull the IPs out of that list
4. Pass those IPs into something that'll firewall them.