title: How to block a user agent using mod_rewrite in htaccess
body: <p>I'm trying to block the access to this user agent who's visiting me: <code>Mozilla/5.0 (compatible; Seekport Crawler; http://seekport.com/</code> (with no <code>)</code> at the end, its not a fault).</p>
  <p>I have tried this one (with two more agents)</p>
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_USER_AGENT} OnalyticaBot [NC, OR]
  RewriteCond %{HTTP_USER_AGENT} Re-re Studio (+http://vip0.ru/) [NC, OR]
  RewriteCond %{HTTP_USER_AGENT} Mozilla/5.0 (compatible; Seekport Crawler; http://seekport.com/ [NC]
  RewriteRule .* - [F,L]
  </code></pre>
  <p>I have tried a couple more with this sintax (using entire string and using only &quot;Seekport&quot;) but still seeing the agent user asking for in the log</p>
  <pre><code>RewriteCond %{HTTP_USER_AGENT} ^.(user_agent1|user_agent2).$ [NC]
  </code></pre>
  <p>Could you help me?</p>