title: Why isn't this htaccess code blocking a specified IP?
body: <p>I have a large htaccess file for my site. One of the IPs I'm trying to block is 27.153.228.56 </p>
  
  <p>Despite my htaccess, I still see 27.153.228.56 showing up in my latest visitor logs.</p>
  
  <p>Is there something wrong with my htaccess that's allowing this IP to access the site?</p>
  
  <p>There are many more IPs blocked but this is an abbreviated version:</p>
  
  <p><code># Protect from spam bots</code></p>
  
  <p><code>&lt;IfModule mod_rewrite.c&gt;</code></p>
  
  <p><code>RewriteEngine On</code></p>
  
  <p><code>RewriteCond %{REQUEST_METHOD} POST</code></p>
  
  <p><code>RewriteCond %{REQUEST_URI} .wp-comments-post\.php*</code></p>
  
  <p><code>RewriteCond %{HTTP_REFERER} !.garagehangover.com* [OR]</code></p>
  
  <p><code>RewriteCond %{HTTP_USER_AGENT} ^$</code></p>
  
  <p><code>RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]</code></p>
  
  <p><code>&lt;/IfModule&gt;</code></p>
  
  <p><code># Begin IP blocking #</code></p>
  
  <p><code>Order Allow,Deny</code></p>
  
  <p><code>deny from 27.153.228.56</code></p>
  
  <p><code># End IP blocking #</code></p>
  
  <p><code>#Begin Bad Bot Blocking</code></p>
  
  <p><code>BrowserMatchNoCase yandex bad_bot</code></p>
  
  <p><code>Deny from env=bad_bot</code></p>
  
  <p><code># End Bad Bot Blocking</code></p>
  
  <p><code>Allow from all</code></p>