1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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