Difference between Apache rules to block libwww-perl

Discussion in 'Apache' started by pierrehs, Sep 22, 2011.

  1. #1
    Hello,
    I want to know the difference between these rules and which is most effective to block libwww-perl with the file .htaccess

    SetEnvIfNoCase User-Agent "libwww-perl" bad_bot
    Order Deny,Allow
    Deny from env=bad_bot
    Code (markup):
    or

    RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
    RewriteRule .* – [F,L]
    Code (markup):

     
    pierrehs, Sep 22, 2011 IP