How to block this spammer bots user agent with htaccess?

Discussion in 'Site & Server Administration' started by domainer_10, Sep 13, 2009.

  1. #1
    A spam bot with this exact user agent on my forum "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

    Crashed my forum.


    Whats the exact code I can use to block it in the htaccess file? Thanks.
     
    domainer_10, Sep 13, 2009 IP
  2. domainer_10

    domainer_10 Peon

    Messages:
    1,720
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is this how I should write it?

    RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.1;\ SV1\)$
    RewriteRule ^.*$ deny.html [L]
     
    domainer_10, Sep 13, 2009 IP