title: Difference between Apache rules to block libwww-perl
body: <p>I want to know the difference between these rules and which is most effective to block libwww-perl with the file .htaccess</p>
  
  <pre><code>SetEnvIfNoCase User-Agent "libwww-perl" bad_bot
  Order Deny,Allow
  Deny from env=bad_bot
  </code></pre>
  
  <p>or</p>
  
  <pre><code>RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
  RewriteRule .* – [F,L]
  </code></pre>
  
  <p>Thank you!</p>