title: Apache Log Parser to Block Certain IP's
body: <p>So, using the following I can get a list of IP address</p>
  
  <pre><code>cat access.* | awk '{ print $1 }' | sort | awk '{print $1;}' | sort -n &gt;&gt; toblock.txt
  </code></pre>
  
  <p>How can I filter it to write out <strong>only</strong> the bots IPs?</p>
  
  <p>Then I can pass it to:</p>
  
  <pre><code>for i in `cat block.txt`; do csf -d $i;done 
  </code></pre>
  
  <p>So I can block them...</p>